Changeset 53954 in webkit for trunk/JavaScriptCore/assembler
- Timestamp:
- Jan 27, 2010, 2:59:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/ARMv7Assembler.h
r52729 r53954 202 202 ALWAYS_INLINE static void countLeadingZerosPartial(uint32_t& value, int32_t& zeros, const int N) 203 203 { 204 if (value & ~((1 <<N)-1)) /* check for any of the top N bits (of 2N bits) are set */ \205 value >>= N; /* if any were set, lose the bottom N */ \206 else /* if none of the top N bits are set, */ \207 zeros += N; /* then we have identified N leading zeros */204 if (value & ~((1 << N) - 1)) /* check for any of the top N bits (of 2N bits) are set */ 205 value >>= N; /* if any were set, lose the bottom N */ 206 else /* if none of the top N bits are set, */ 207 zeros += N; /* then we have identified N leading zeros */ 208 208 } 209 209
Note:
See TracChangeset
for help on using the changeset viewer.