diff options
| author | IntegratedQuantum <43880493+IntegratedQuantum@users.noreply.github.com> | 2023-07-06 20:41:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-06 14:41:49 -0400 |
| commit | 49ac816e3683def5d14d6f8415d80413ecb43e4c (patch) | |
| tree | d1111a8019b7e1cb4c6a0f28158d3806126ec5d3 /src/codegen | |
| parent | 91daf1c8d8a64133f18dcec2b96e9f9f4326fe36 (diff) | |
| download | zig-49ac816e3683def5d14d6f8415d80413ecb43e4c.tar.gz zig-49ac816e3683def5d14d6f8415d80413ecb43e4c.zip | |
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.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
