- Timestamp:
- May 19, 2015 11:45:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm.h
r54269 r55949 3599 3599 uint8_t const *pb = (uint8_t const *)pv; 3600 3600 for (; cb; cb--, pb++) 3601 if (RT_UNLIKELY(*pb != u8)) 3601 if (RT_LIKELY(*pb == u8)) 3602 { /* likely */ } 3603 else 3602 3604 return (void *)pb; 3603 3605 return NULL; … … 3624 3626 uint32_t const *pu32 = (uint32_t const *)pv; 3625 3627 for (; cb; cb -= 4, pu32++) 3626 if (RT_UNLIKELY(*pu32 != u32)) 3628 if (RT_LIKELY(*pu32 == u32)) 3629 { /* likely */ } 3630 else 3627 3631 return (uint32_t *)pu32; 3628 3632 return NULL;
Note:
See TracChangeset
for help on using the changeset viewer.