Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nmilo
· 3y ago · 0 comments
Why not right-shift all the pointers and set the int's top bit to one instead? That way arithmetic stays mostly the same and to dereference pointers you just left-shift before.
Comments
[–]
makapuf
3y ago
No need to shift right pointers if you promise not to use higher addresses of 64 bits pointers (which should be sufficient)