3 ms·
The way it works is that pointers are represented as themselves, assuming top 15 bits being zero. Doubles are shifted by an offset such that nans land at top 15
by mmoskal 4y ago
The way it works is that pointers are represented as themselves, assuming top 15 bits being zero. Doubles are shifted by an offset such that nans land at top 15 bits being zero.
So assuming pointers are at most 49 bits you're fine.
- moonchild 4y agoMy point is that, if the system were more cooperative, you would not need to 'shift by an offset'.