projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5e16ac3
)
Fixed compilation on IA64. Patch from Jérémy Bobbio
author
Pekka Riikonen
<priikone@silcnet.org>
Thu, 19 Jul 2007 18:24:05 +0000
(18:24 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Thu, 19 Jul 2007 18:24:05 +0000
(18:24 +0000)
lib/silcutil/silcatomic.h
patch
|
blob
|
history
diff --git
a/lib/silcutil/silcatomic.h
b/lib/silcutil/silcatomic.h
index 3a49aecf07f039d78de8d1241cd13ed470bbe597..5ec573353f6707a610dc77c4000c1b43b67556d8 100644
(file)
--- a/
lib/silcutil/silcatomic.h
+++ b/
lib/silcutil/silcatomic.h
@@
-753,7
+753,7
@@
SILC_ATOMIC_ADD_INT_F(bits) \
SILC_ATOMIC_ADD_INT_F(bits) \
{ \
SilcUInt##bits ret; \
SILC_ATOMIC_ADD_INT_F(bits) \
{ \
SilcUInt##bits ret; \
- SilcInt32 val = value;
+ SilcInt32 val = value;
\
/* GCC + IA64 (GCC builtin atomic operations) */ \
ret = __sync_fetch_and_add(&atomic->value, val); \
return ret + value; \
/* GCC + IA64 (GCC builtin atomic operations) */ \
ret = __sync_fetch_and_add(&atomic->value, val); \
return ret + value; \
@@
-1230,7
+1230,7
@@
SilcBool silc_atomic_cas_pointer(SilcAtomicPointer *atomic, void *old_val,
#elif defined(__GNUC__) && defined(SILC_IA64)
/* GCC + IA64 (GCC builtin atomic operations) */
#elif defined(__GNUC__) && defined(SILC_IA64)
/* GCC + IA64 (GCC builtin atomic operations) */
- return __sync_bool_compare_and_swap((long)&atomic->value, (long)old_val,
+ return __sync_bool_compare_and_swap((long
*
)&atomic->value, (long)old_val,
(long)new_val);
#elif defined(__GNUC__) && defined(SILC_POWERPC)
(long)new_val);
#elif defined(__GNUC__) && defined(SILC_POWERPC)