mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Packed memory has a well-defined layout that doesn't require conversion from an integer to read from. Let's use it :-) This change means that for bitcasting to/from a packed value that is N layers deep, we no longer have to create N temporary big-ints and perform N copies. Other miscellaneous improvements: - Adds support for casting to packed enums and vectors - Fixes bitcasting to/from vectors outside of a packed struct - Adds a fast path for bitcasting <= u/i64 - Fixes bug when bitcasting f80 which would clear following fields This also changes the bitcast memory layout of exotic integers on big-endian systems to match what's empirically observed on our targets. Technically, this layout is not guaranteed by LLVM so we should probably ban bitcasts that reveal these padding bits, but for now this is an improvement. |
||
|---|---|---|
| .. | ||
| big | ||
| complex | ||
| acos.zig | ||
| acosh.zig | ||
| asin.zig | ||
| asinh.zig | ||
| atan.zig | ||
| atan2.zig | ||
| atanh.zig | ||
| big.zig | ||
| cbrt.zig | ||
| complex.zig | ||
| copysign.zig | ||
| cosh.zig | ||
| expm1.zig | ||
| expo2.zig | ||
| float.zig | ||
| frexp.zig | ||
| gcd.zig | ||
| hypot.zig | ||
| ilogb.zig | ||
| isfinite.zig | ||
| isinf.zig | ||
| isnan.zig | ||
| isnormal.zig | ||
| ldexp.zig | ||
| ln.zig | ||
| log.zig | ||
| log1p.zig | ||
| log2.zig | ||
| log10.zig | ||
| modf.zig | ||
| nan.zig | ||
| pow.zig | ||
| powi.zig | ||
| scalbn.zig | ||
| signbit.zig | ||
| sinh.zig | ||
| sqrt.zig | ||
| tanh.zig | ||