mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
After a right shift, top limbs may be all zero. However, without normalization, the number of limbs is not going to change. In order to check if a big number is zero, we used to assume that the number of limbs is 1. Which may not be the case after right shifts, even if the actual value is zero. - Normalize after a right shift - Add a test for that issue - Check all the limbs in `eqlZero()`. It may not be necessary if callers always remember to normalize before calling the function. But checking all the limbs is very cheap and makes the function less bug-prone. |
||
|---|---|---|
| .. | ||
| big | ||
| complex | ||
| acos.zig | ||
| acosh.zig | ||
| asin.zig | ||
| asinh.zig | ||
| atan.zig | ||
| atan2.zig | ||
| atanh.zig | ||
| big.zig | ||
| cbrt.zig | ||
| ceil.zig | ||
| complex.zig | ||
| copysign.zig | ||
| cos.zig | ||
| cosh.zig | ||
| epsilon.zig | ||
| exp.zig | ||
| exp2.zig | ||
| expm1.zig | ||
| expo2.zig | ||
| fabs.zig | ||
| floor.zig | ||
| fma.zig | ||
| frexp.zig | ||
| hypot.zig | ||
| ilogb.zig | ||
| inf.zig | ||
| isfinite.zig | ||
| isinf.zig | ||
| isnan.zig | ||
| isnormal.zig | ||
| ln.zig | ||
| log.zig | ||
| log1p.zig | ||
| log2.zig | ||
| log10.zig | ||
| modf.zig | ||
| nan.zig | ||
| pow.zig | ||
| powi.zig | ||
| round.zig | ||
| scalbn.zig | ||
| signbit.zig | ||
| sin.zig | ||
| sinh.zig | ||
| sqrt.zig | ||
| tan.zig | ||
| tanh.zig | ||
| trunc.zig | ||