Deleted Added
full compact
ia64intrin.h (90075) ia64intrin.h (122180)
1#ifndef _IA64INTRIN_H_INCLUDED
2#define _IA64INTRIN_H_INCLUDED
3
4/* Actually, everything is a compiler builtin, but just so
5 there's no confusion... */
6#ifdef __cplusplus
7extern "C" {
8#endif

--- 5 unchanged lines hidden (view full) ---

14#define __sync_val_compare_and_swap(PTR, OLD, NEW) \
15 ((sizeof (*(PTR)) == sizeof(int)) \
16 ? (__typeof__(*(PTR))) \
17 __sync_val_compare_and_swap_si((int *)(PTR),(int)(OLD),(int)(NEW)) \
18 : (__typeof__(*(PTR))) \
19 __sync_val_compare_and_swap_di((long *)(PTR),(long)(OLD),(long)(NEW)))
20
21extern int __sync_bool_compare_and_swap_si (int *, int, int);
1#ifndef _IA64INTRIN_H_INCLUDED
2#define _IA64INTRIN_H_INCLUDED
3
4/* Actually, everything is a compiler builtin, but just so
5 there's no confusion... */
6#ifdef __cplusplus
7extern "C" {
8#endif

--- 5 unchanged lines hidden (view full) ---

14#define __sync_val_compare_and_swap(PTR, OLD, NEW) \
15 ((sizeof (*(PTR)) == sizeof(int)) \
16 ? (__typeof__(*(PTR))) \
17 __sync_val_compare_and_swap_si((int *)(PTR),(int)(OLD),(int)(NEW)) \
18 : (__typeof__(*(PTR))) \
19 __sync_val_compare_and_swap_di((long *)(PTR),(long)(OLD),(long)(NEW)))
20
21extern int __sync_bool_compare_and_swap_si (int *, int, int);
22extern long __sync_bool_compare_and_swap_di (long *, long, long);
22extern int __sync_bool_compare_and_swap_di (long *, long, long);
23#define __sync_bool_compare_and_swap(PTR, OLD, NEW) \
24 ((sizeof (*(PTR)) == sizeof(int)) \
23#define __sync_bool_compare_and_swap(PTR, OLD, NEW) \
24 ((sizeof (*(PTR)) == sizeof(int)) \
25 ? (__typeof__(*(PTR))) \
26 __sync_bool_compare_and_swap_si((int *)(PTR),(int)(OLD),(int)(NEW)) \
27 : (__typeof__(*(PTR))) \
28 __sync_bool_compare_and_swap_di((long *)(PTR),(long)(OLD),(long)(NEW)))
25 ? __sync_bool_compare_and_swap_si((int *)(PTR),(int)(OLD),(int)(NEW)) \
26 : __sync_bool_compare_and_swap_di((long *)(PTR),(long)(OLD),(long)(NEW)))
29
30extern void __sync_lock_release_si (int *);
31extern void __sync_lock_release_di (long *);
32#define __sync_lock_release(PTR) \
33 ((sizeof (*(PTR)) == sizeof(int)) \
34 ? __sync_lock_release_si((int *)(PTR)) \
35 : __sync_lock_release_di((long *)(PTR)))
36

--- 96 unchanged lines hidden ---
27
28extern void __sync_lock_release_si (int *);
29extern void __sync_lock_release_di (long *);
30#define __sync_lock_release(PTR) \
31 ((sizeof (*(PTR)) == sizeof(int)) \
32 ? __sync_lock_release_si((int *)(PTR)) \
33 : __sync_lock_release_di((long *)(PTR)))
34

--- 96 unchanged lines hidden ---