Faster register clear

This commit is contained in:
Devine Lu Linvega 2024-04-16 14:45:56 -07:00
parent 8df2a496cc
commit 2449bac4ad
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ match_rule(Rule *r, char *p)
int i; int i;
char c, last = 0, *a = r->a, *b = p; char c, last = 0, *a = r->a, *b = p;
if(rmax) { if(rmax) {
for(i = 0; i <= rmax; i++) for(i = rmin; i <= rmax; i++)
regs[i] = 0; regs[i] = 0;
rmin = 0xff, rmax = 0x00; rmin = 0xff, rmax = 0x00;
} }