This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug regex/1279] New: regex simplification: "if (A == B) A += C - B;" -> "if (A == B) A = C;"
- From: "eggert at gnu dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 31 Aug 2005 19:52:53 -0000
- Subject: [Bug regex/1279] New: regex simplification: "if (A == B) A += C - B;" -> "if (A == B) A = C;"
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
While porting the regex code to 64-bit hosts I noticed an infelicity.
The code uses the equivalent of "if (A == B) A += C - B;";
it would be simpler and faster to use "if (A == B) A = C;".
This also happens to make the later changes simpler, but I thought I'd
separate it out since it makes sense regardless of the 64-bit changes.
I'll attach a patch.
--
Summary: regex simplification: "if (A == B) A += C - B;" -> "if
(A == B) A = C;"
Product: glibc
Version: 2.3.5
Status: NEW
Severity: normal
Priority: P2
Component: regex
AssignedTo: gotom at debian dot or dot jp
ReportedBy: eggert at gnu dot org
CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1279
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.