zig icon indicating copy to clipboard operation
zig copied to clipboard

mem: rename align*Generic to align*

Open motiejus opened this issue 1 year ago • 1 comments

Anecdote 1: The generic version is way more popular than the non-generic one in Zig codebase:

 git grep -w alignForward | wc -l
56
 git grep -w alignForwardGeneric | wc -l
149

 git grep -w alignBackward | wc -l
6
 git grep -w alignBackwardGeneric | wc -l
15

Anecdote 2: In my project (turbonss) that does much arithmetic and alignment I exclusively use the Generic functions.

Anecdote 3: we used only the Generic versions in the Macho Man's linker workshop.

motiejus avatar Jun 09 '23 23:06 motiejus

I'm happy to merge this - would you mind rebasing it?

Done. Also added @compileError(...) for the deprecated functions.

motiejus avatar Jun 16 '23 03:06 motiejus