Showing the changes to src/hashing.c (1 of 2 files). Show all
Unified · Split
| @@ -5,8 +5,6 @@ · 4 unmodified lines | ||
| 5 | 5 | sl_v |
| 6 | 6 | nextipow2(sl_v a) |
| 7 | 7 | { |
| 8 | − if(sl_unlikely(a == 0)) | |
| 9 | − return 1; | |
| 10 | 8 | a |= a >> 1; |
| 11 | 9 | a |= a >> 2; |
| 12 | 10 | a |= a >> 4; |
| @@ -16,7 +14,8 @@ nextipow2(sl_v a) · 3 unmodified lines | ||
| 16 | 14 | a |= a >> 32; |
| 17 | 15 | #endif |
| 18 | 16 | a++; |
| 19 | − return a ? a : TOP_BIT; | |
| 17 | + assert(a != 0); | |
| 18 | + return a; | |
| 20 | 19 | } |
| 21 | 20 | |
| 22 | 21 | sl_v |