Files
heimdal/lib
Stefan Metzmacher dc3ac8592b heimbase-atomics: let heim_base_atomic_* use 'long' instead of 'int' on AIX
As the atomics are signed on AIX, we better try to use the largest
possible max value.

The 'int' API uses 32-bit values for both 32-bit and 64-bit binaries:

  typedef int *atomic_p;

  int fetch_and_add(atomic_p addr, int value);

The 'long' API uses 32-bit values for 32-bit binaries and 64-bit values
for 64-bit binaries:

  typedef long *atomic_l;

  long fetch_and_addlp(atomic_l addr, long value);

So we better use the 'long' API in order to avoid any potential
problems with the heim_base_atomic_integer_max magic value, where
INT[32]_MAX would be a little bit low compared to 64-bit pointer space.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2022-12-22 22:12:52 +11:00
..
2022-11-30 11:59:45 -06:00
2022-01-21 10:09:44 +11:00
2022-12-21 22:14:03 -06:00
2022-09-22 22:13:05 -04:00
2017-03-10 15:47:43 -05:00
2022-12-07 21:27:50 -06:00
2016-12-15 12:15:56 -06:00