zig/lib/std/mem
IntegratedQuantum 49ac816e36
Optimize Allocator functions to create less duplicate code for similar types (#16332)
* Move functionality from generic functions that doesn't depend on the type into a function that only depends on comptime alignment.

This reduces comptime code duplication because e.g. `alloc(u32, )` and `alloc(i32, )` now use the same function `allocWithFoo(4, 4, )` under the hood.
2023-07-06 14:41:49 -04:00
..
Allocator.zig Optimize Allocator functions to create less duplicate code for similar types (#16332) 2023-07-06 14:41:49 -04:00