[Fedora-directory-commits] ldapserver/ldap/servers/slapd slapi_counter.c, 1.7, 1.8

Richard Allen Megginson rmeggins at fedoraproject.org
Mon Apr 6 18:11:21 UTC 2009


Author: rmeggins

Update of /cvs/dirsec/ldapserver/ldap/servers/slapd
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31169

Modified Files:
	slapi_counter.c 
Log Message:
re-enable ppc support
NOTE: We do not have support for atomic 64-bit counters on ppc - ppc platorms use the mutex approach instead



Index: slapi_counter.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/slapi_counter.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- slapi_counter.c	21 Nov 2008 17:06:05 -0000	1.7
+++ slapi_counter.c	6 Apr 2009 18:11:18 -0000	1.8
@@ -53,6 +53,7 @@
 #endif
 #endif
 
+#ifdef ATOMIC_64BIT_OPERATIONS
 #if defined LINUX && (defined CPU_x86 || !HAVE_DECL___SYNC_ADD_AND_FETCH)
 /* On systems that don't have the 64-bit GCC atomic builtins, we need to
  * implement our own atomic functions using inline assembly code. */
@@ -69,6 +70,8 @@
 #define __sync_add_and_fetch __sync_add_and_fetch_8
 #define __sync_sub_and_fetch __sync_sub_and_fetch_8
 #endif
+#endif /* ATOMIC_64BIT_OPERATIONS */
+
 
 /*
  * Counter Structure
@@ -428,6 +431,7 @@
     return value;
 }
 
+#ifdef ATOMIC_64BIT_OPERATIONS
 #if defined LINUX && (defined CPU_x86 || !HAVE_DECL___SYNC_ADD_AND_FETCH)
 /* On systems that don't have the 64-bit GCC atomic builtins, we need to
  * implement our own atomic add and subtract functions using inline
@@ -520,3 +524,4 @@
     return retval;
 }
 #endif /* LINUX && (defined CPU_x86 || !HAVE_DECL___SYNC_ADD_AND_FETCH) */
+#endif /* ATOMIC_64BIT_OPERATIONS */




More information about the Fedora-directory-commits mailing list