[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
- Previous message (by thread): [Fedora-directory-commits] ldapserver configure.ac, 1.60, 1.61 aclocal.m4, 1.82, 1.83 configure, 1.103, 1.104 missing, 1.61, 1.62 install-sh, 1.61, 1.62 depcomp, 1.61, 1.62 compile, 1.54, 1.55 config.sub, 1.60, 1.61 config.guess, 1.60, 1.61 Makefile.in, 1.106, 1.107
- Next message (by thread): [Fedora-directory-commits] adminserver/admserv/newinst/src AdminServer.pm.in, 1.16, 1.17 setup-ds-admin.pl.in, 1.14, 1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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 */
- Previous message (by thread): [Fedora-directory-commits] ldapserver configure.ac, 1.60, 1.61 aclocal.m4, 1.82, 1.83 configure, 1.103, 1.104 missing, 1.61, 1.62 install-sh, 1.61, 1.62 depcomp, 1.61, 1.62 compile, 1.54, 1.55 config.sub, 1.60, 1.61 config.guess, 1.60, 1.61 Makefile.in, 1.106, 1.107
- Next message (by thread): [Fedora-directory-commits] adminserver/admserv/newinst/src AdminServer.pm.in, 1.16, 1.17 setup-ds-admin.pl.in, 1.14, 1.15
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-directory-commits
mailing list