Changeset 3091 in kBuild
- Timestamp:
- Oct 4, 2017 2:31:04 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/strcache2.c
r3084 r3091 498 498 if (!((size_t)xs & 3)) 499 499 { 500 /* aligned */ 500 501 int result; 501 /* aligned */ 502 while (length >= 8) 502 unsigned reminder = length & 7; 503 length >>= 3; 504 while (length-- > 0) 503 505 { 504 506 result = *(int32_t*)xs - *(int32_t*)ys; … … 508 510 xs += 8; 509 511 ys += 8; 510 length -= 8;511 512 } 512 switch ( length)513 switch (reminder) 513 514 { 514 515 case 7: … … 549 550 /* unaligned */ 550 551 int result; 551 while (length >= 8) 552 unsigned reminder = length & 7; 553 length >>= 3; 554 while (length-- > 0) 552 555 { 553 556 #if defined(__i386__) || defined(__x86_64__) … … 576 579 xs += 8; 577 580 ys += 8; 578 length -= 8;579 581 } 582 580 583 result = 0; 581 switch ( length)584 switch (reminder) 582 585 { 583 586 case 7: result |= xs[6] - ys[6]; /* fall thru */
Note:
See TracChangeset
for help on using the changeset viewer.