Daniel Gibson 23b6374e9a Add ULONG PointerToID(void*) and IntPtrToID(size_t) that CRC 64bit pointers
Sometimes pointers are casted to ULONG just to get an ID or tag - this
is fine for 32bit pointers, but 64bit pointers will truncate which might
result in not being so unique after all.
CRC-ing the pointer should yield a more likely to be unique 32bit value.
NULL is a special case that yields 0 instead of the CRC, so code that
handles IDs/Tags with value 0 differently will continue to work.
For 32bit builds, it just returns the pointer as ULONG.
2016-04-21 16:21:47 +02:00
..
2016-03-11 18:20:51 -06:00
2016-03-11 15:57:17 +02:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00
2016-03-11 15:57:17 +02:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00
2016-03-11 15:57:17 +02:00
2016-03-11 18:20:51 -06:00
2016-04-01 15:17:48 -04:00
2016-04-07 18:13:50 +02:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00
2016-04-06 13:38:09 +02:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00
2016-04-21 16:21:47 +02:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00