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-04-13 08:21:50 +02:00
2016-04-12 22:29:39 +02:00
2016-04-02 23:56:12 -04:00
2016-04-06 23:20:29 -04:00
2016-04-02 23:56:12 -04:00
2016-04-09 02:18:57 -04:00
2016-03-11 18:20:51 -06:00
2016-03-11 15:57:17 +02:00
2016-04-02 23:56:12 -04: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-06 23:20:29 -04:00
2016-03-11 18:20:51 -06:00
2016-04-02 23:56:12 -04:00
2016-04-21 16:21:47 +02:00
2016-04-04 02:34:07 -04:00
2016-03-11 18:20:51 -06:00
2016-04-09 14:15:33 +02:00
2016-04-09 02:18:57 -04:00
2016-03-28 23:46:13 -04:00
2016-04-02 23:56:12 -04:00
2016-03-28 23:46:13 -04:00
2016-04-09 02:18:57 -04:00
2016-04-04 02:34:07 -04:00
2016-04-04 02:34:07 -04:00
2016-04-02 23:56:12 -04:00
2016-04-02 23:56:12 -04:00
2016-03-28 23:46:13 -04:00
2016-03-11 15:57:17 +02:00
2016-03-11 18:20:51 -06:00
2016-04-04 02:34:07 -04:00
2016-04-04 02:34:07 -04:00
2016-04-02 23:56:12 -04:00
2016-04-02 23:56:12 -04:00
2016-04-02 23:56:12 -04:00
2016-03-28 23:46:13 -04:00
2016-04-13 08:21:50 +02:00
2016-03-11 18:20:51 -06:00
2016-03-11 15:57:17 +02:00
2016-04-06 23:20:29 -04:00
2016-03-11 18:20:51 -06:00
2016-03-28 23:46:13 -04:00
2016-04-01 15:17:48 -04:00
2016-04-01 12:19:18 -04:00
2016-04-02 23:56:12 -04:00
2016-03-28 23:46:13 -04:00
2016-04-06 13:56:26 +02:00
2016-04-02 23:56:12 -04:00
2016-04-02 23:56:12 -04:00
2016-04-07 18:13:50 +02:00
2016-03-11 18:20:51 -06:00
2016-04-02 23:56:12 -04:00
2016-04-02 23:56:12 -04:00
2016-04-02 23:56:12 -04:00
2016-03-11 18:20:51 -06:00
2016-04-02 23:56:12 -04:00
2016-04-02 23:56:12 -04:00
2016-04-09 02:18:57 -04:00
2016-04-04 02:34:07 -04:00
2016-04-06 13:38:09 +02:00
2016-04-02 23:56:12 -04:00
2016-03-11 18:20:51 -06:00
2016-04-02 23:56:12 -04:00
2016-04-18 18:52:52 +02:00
2016-04-18 18:52:52 +02:00
2016-04-02 23:56:12 -04:00
2016-04-02 23:56:12 -04:00
2016-03-11 18:20:51 -06:00
2016-04-02 23:56:12 -04:00
2016-03-11 18:20:51 -06:00
2016-04-13 08:21:50 +02:00
2016-04-06 23:20:29 -04:00
2016-04-02 23:56:12 -04:00
2016-04-09 02:18:57 -04:00
2016-04-15 14:52:56 -04:00
2016-04-12 22:29:39 +02:00
2016-03-28 23:46:13 -04:00
2016-04-04 02:34:07 -04:00
2016-04-04 02:34:07 -04:00
2016-03-11 18:20:51 -06:00
2016-04-21 16:21:47 +02:00
2016-04-09 02:18:57 -04:00
2016-03-11 18:20:51 -06:00
2016-04-02 23:56:12 -04:00
2016-03-11 18:20:51 -06:00
2016-03-11 18:20:51 -06:00