Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ryanpetrich
· 1y ago · 0 comments
aligned_alloc is a C function. It doesn't help the compiler prove that two pointers can't alias. restrict is the keyword that does.
Comments
[–]
bobmcnamara
1y ago
The compiler is allowed to assume the results of malloc and certain other allocation functions do not alias.
Restrict does too.