projects
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
525a988
)
Fixed compilation on IA64.
author
Pekka Riikonen
<priikone@silcnet.org>
Sat, 21 Jul 2007 12:56:59 +0000
(12:56 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sat, 21 Jul 2007 12:56:59 +0000
(12:56 +0000)
lib/silcutil/silcatomic.h
patch
|
blob
|
history
diff --git
a/lib/silcutil/silcatomic.h
b/lib/silcutil/silcatomic.h
index 5f3ea2e15520d9111b021abf7d86beccccfa10ac..3f79dc547e1654c929524115b3ad8d1a92971120 100644
(file)
--- a/
lib/silcutil/silcatomic.h
+++ b/
lib/silcutil/silcatomic.h
@@
-766,7
+766,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; \
@@
-1243,7
+1243,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)