@johnregehr @RichFelker @ch3root @spun_off The C standard guarantees pointer -> [u]intptr_t -> pointer round trips. However...
@BRIAN_____ @johnregehr @ch3root @spun_off Hashing or encryption of ptrs, xor linked lists, 'base-relative' diffs for ptrs in shm, etc.
-
-
@RichFelker@johnregehr@ch3root @spun_off The standard says only that given a uintptr_t converted from pointer, you can recover pointer. -
@BRIAN_____@johnregehr@ch3root @spun_off Yes. But you need to understand "a uintptr_t converted from a pointer" is a _value_. -
@BRIAN_____@johnregehr@ch3root @spun_off You can recover the ptr as long as you have that value. Ways of keeping the value are limitless.
End of conversation
New conversation -
-
-
@RichFelker@johnregehr@ch3root @spun_off Imagine uintptr_t is a key to a hash table mapping (uint64_t -> pointer).Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.