@@ -379,39 +379,39 @@ OSHMEM_DECLSPEC long long pshmem_longlong_fadd(long long *target, long long valu
379
379
#endif
380
380
381
381
/* Atomic Fetch&And */
382
- OSHMEM_DECLSPEC int pshmem_int_atomic_fand ( int *target, int value, int pe);
383
- OSHMEM_DECLSPEC long pshmem_long_atomic_fand ( long *target, long value, int pe);
384
- OSHMEM_DECLSPEC long long pshmem_longlong_atomic_fand ( long long *target, long long value, int pe);
385
- #if OSHMEMP_HAVE_C11
386
- #define pshmem_atomic_fand (dst, val, pe ) \
387
- _Generic (&*(dst), \
388
- int*: pshmem_int_atomic_fand, \
389
- long*: pshmem_long_atomic_fand, \
390
- long long*: pshmem_longlong_atomic_fand )(dst, val, pe)
382
+ OSHMEM_DECLSPEC unsigned int pshmem_uint_atomic_fetch_and ( unsigned int *target, unsigned int value, int pe);
383
+ OSHMEM_DECLSPEC unsigned long pshmem_ulong_atomic_fetch_and ( unsigned long *target, unsigned long value, int pe);
384
+ OSHMEM_DECLSPEC unsigned long long pshmem_ulonglong_atomic_fetch_and ( unsigned long long *target, unsigned long long value, int pe);
385
+ #if OSHMEM_HAVE_C11
386
+ #define pshmem_atomic_fetch_and (dst, val, pe ) \
387
+ _Generic (&*(dst), \
388
+ unsigned int*: pshmem_uint_atomic_fetch_and, \
389
+ unsigned long*: pshmem_ulong_atomic_fetch_and, \
390
+ unsigned long long*: pshmem_ulonglong_atomic_fetch_and )(dst, val, pe)
391
391
#endif
392
392
393
393
/* Atomic Fetch&Or */
394
- OSHMEM_DECLSPEC int pshmem_int_atomic_for ( int *target, int value, int pe);
395
- OSHMEM_DECLSPEC long pshmem_long_atomic_for ( long *target, long value, int pe);
396
- OSHMEM_DECLSPEC long long pshmem_longlong_atomic_for ( long long *target, long long value, int pe);
397
- #if OSHMEMP_HAVE_C11
398
- #define pshmem_atomic_for (dst, val, pe ) \
399
- _Generic (&*(dst), \
400
- int*: pshmem_int_atomic_for, \
401
- long*: pshmem_long_atomic_for, \
402
- long long*: pshmem_longlong_atomic_for )(dst, val, pe)
394
+ OSHMEM_DECLSPEC unsigned int pshmem_uint_atomic_fetch_or ( unsigned int *target, unsigned int value, int pe);
395
+ OSHMEM_DECLSPEC unsigned long pshmem_ulong_atomic_fetch_or ( unsigned long *target, unsigned long value, int pe);
396
+ OSHMEM_DECLSPEC unsigned long long pshmem_ulonglong_atomic_fetch_or ( unsigned long long *target, unsigned long long value, int pe);
397
+ #if OSHMEM_HAVE_C11
398
+ #define pshmem_atomic_fetch_or (dst, val, pe ) \
399
+ _Generic (&*(dst), \
400
+ unsigned int*: pshmem_uint_atomic_fetch_or, \
401
+ unsigned long*: pshmem_ulong_atomic_fetch_or, \
402
+ unsigned long long*: pshmem_ulonglong_atomic_fetch_or )(dst, val, pe)
403
403
#endif
404
404
405
405
/* Atomic Fetch&Xor */
406
- OSHMEM_DECLSPEC int pshmem_int_atomic_fxor ( int *target, int value, int pe);
407
- OSHMEM_DECLSPEC long pshmem_long_atomic_fxor ( long *target, long value, int pe);
408
- OSHMEM_DECLSPEC long long pshmem_longlong_atomic_fxor ( long long *target, long long value, int pe);
409
- #if OSHMEMP_HAVE_C11
410
- #define pshmem_atomic_fxor (dst, val, pe ) \
411
- _Generic (&*(dst), \
412
- int*: pshmem_int_atomic_fxor, \
413
- long*: pshmem_long_atomic_fxor, \
414
- long long*: pshmem_longlong_atomic_fxor )(dst, val, pe)
406
+ OSHMEM_DECLSPEC unsigned int pshmem_uint_atomic_fetch_xor ( unsigned int *target, unsigned int value, int pe);
407
+ OSHMEM_DECLSPEC unsigned long pshmem_ulong_atomic_fetch_xor ( unsigned long *target, unsigned long value, int pe);
408
+ OSHMEM_DECLSPEC unsigned long long pshmem_ulonglong_atomic_fetch_xor ( unsigned long long *target, unsigned long long value, int pe);
409
+ #if OSHMEM_HAVE_C11
410
+ #define pshmem_atomic_fetch_xor (dst, val, pe ) \
411
+ _Generic (&*(dst), \
412
+ unsigned int*: pshmem_uint_atomic_fetch_xor, \
413
+ unsigned long*: pshmem_ulong_atomic_fetch_xor, \
414
+ unsigned long long*: pshmem_ulonglong_atomic_fetch_xor )(dst, val, pe)
415
415
#endif
416
416
417
417
/* Atomic Fetch */
@@ -455,39 +455,39 @@ OSHMEM_DECLSPEC void pshmem_longlong_add(long long *target, long long value, int
455
455
#endif
456
456
457
457
/* Atomic And */
458
- OSHMEM_DECLSPEC void pshmem_int_atomic_and ( int *target, int value, int pe);
459
- OSHMEM_DECLSPEC void pshmem_long_atomic_and ( long *target, long value, int pe);
460
- OSHMEM_DECLSPEC void pshmem_longlong_atomic_and ( long long *target, long long value, int pe);
461
- #if OSHMEMP_HAVE_C11
462
- #define pshmem_atomic_and (dst, val, pe ) \
463
- _Generic (&*(dst), \
464
- int*: pshmem_int_atomic_and, \
465
- long *: pshmem_long_atomic_and, \
466
- long long*: pshmem_longlong_atomic_and )(dst, val, pe)
458
+ OSHMEM_DECLSPEC void pshmem_uint_atomic_and ( unsigned int *target, unsigned int value, int pe);
459
+ OSHMEM_DECLSPEC void pshmem_ulong_atomic_and ( unsigned long *target, unsigned long value, int pe);
460
+ OSHMEM_DECLSPEC void pshmem_ulonglong_atomic_and ( unsigned long long *target, unsigned long long value, int pe);
461
+ #if OSHMEM_HAVE_C11
462
+ #define pshmem_atomic_and (dst, val, pe ) \
463
+ _Generic (&*(dst), \
464
+ unsigned int*: pshmem_uint_atomic_and, \
465
+ unsigned iong *: pshmem_ulong_atomic_and, \
466
+ unsigned iong long*: pshmem_ulonglong_atomic_and )(dst, val, pe)
467
467
#endif
468
468
469
469
/* Atomic Or */
470
- OSHMEM_DECLSPEC void pshmem_int_atomic_or ( int *target, int value, int pe);
471
- OSHMEM_DECLSPEC void pshmem_long_atomic_or ( long *target, long value, int pe);
472
- OSHMEM_DECLSPEC void pshmem_longlong_atomic_or ( long long *target, long long value, int pe);
473
- #if OSHMEMP_HAVE_C11
474
- #define pshmem_atomic_or (dst, val, pe ) \
475
- _Generic (&*(dst), \
476
- int*: pshmem_int_atomic_or, \
477
- long *: pshmem_long_atomic_or, \
478
- long long*: pshmem_longlong_atomic_or )(dst, val, pe)
470
+ OSHMEM_DECLSPEC void pshmem_uint_atomic_or ( unsigned int *target, unsigned int value, int pe);
471
+ OSHMEM_DECLSPEC void pshmem_ulong_atomic_or ( unsigned long *target, unsigned long value, int pe);
472
+ OSHMEM_DECLSPEC void pshmem_ulonglong_atomic_or ( unsigned long long *target, unsigned long long value, int pe);
473
+ #if OSHMEM_HAVE_C11
474
+ #define pshmem_atomic_or (dst, val, pe ) \
475
+ _Generic (&*(dst), \
476
+ unsigned int*: pshmem_uint_atomic_or, \
477
+ unsigned iong *: pshmem_ulong_atomic_or, \
478
+ unsigned iong long*: pshmem_ulonglong_atomic_or )(dst, val, pe)
479
479
#endif
480
480
481
481
/* Atomic Xor */
482
- OSHMEM_DECLSPEC void pshmem_int_atomic_xor ( int *target, int value, int pe);
483
- OSHMEM_DECLSPEC void pshmem_long_atomic_xor ( long *target, long value, int pe);
484
- OSHMEM_DECLSPEC void pshmem_longlong_atomic_xor ( long long *target, long long value, int pe);
485
- #if OSHMEMP_HAVE_C11
486
- #define pshmem_atomic_xor (dst, val, pe ) \
487
- _Generic (&*(dst), \
488
- int*: pshmem_int_atomic_xor, \
489
- long *: pshmem_long_atomic_xor, \
490
- long long*: pshmem_longlong_atomic_xor )(dst, val, pe)
482
+ OSHMEM_DECLSPEC void pshmem_uint_atomic_xor ( unsigned int *target, unsigned int value, int pe);
483
+ OSHMEM_DECLSPEC void pshmem_ulong_atomic_xor ( unsigned long *target, unsigned long value, int pe);
484
+ OSHMEM_DECLSPEC void pshmem_ulonglong_atomic_xor ( unsigned long long *target, unsigned long long value, int pe);
485
+ #if OSHMEM_HAVE_C11
486
+ #define pshmem_atomic_xor (dst, val, pe ) \
487
+ _Generic (&*(dst), \
488
+ unsigned int*: pshmem_uint_atomic_xor, \
489
+ unsigned iong *: pshmem_ulong_atomic_xor, \
490
+ unsigned iong long*: pshmem_ulonglong_atomic_xor )(dst, val, pe)
491
491
#endif
492
492
493
493
/* Atomic Inc */
0 commit comments