]> Savannah Git Hosting - gnulib.git/commit
dfa: shrink constraints from 4 bits to 3
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 10 Jan 2017 06:48:46 +0000 (22:48 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 10 Jan 2017 10:13:13 +0000 (02:13 -0800)
commit2db74de1779f4e0689fbb05941f65d06ef248e8c
tree5768c3509cbe8023a0223c53cd630f5545e0f4f2
parent9d561f0d2e8be501d0725bd566520f6b44c6bc22
dfa: shrink constraints from 4 bits to 3

* lib/dfa.c (newline_constraint, letter_constraint)
(other_constraint, prev_newline_dependent)
(prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
(ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
(LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
Constraints need only 3 bits, not 4.  Using smaller integers
shrinks the code a bit and makes grep a tad faster on x86-64.
ChangeLog
lib/dfa.c