diff options
author | wtc%netscape.com <devnull@localhost> | 2000-05-31 00:33:48 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2000-05-31 00:33:48 +0000 |
commit | f25e09f789461bb344e5c0a364ec22223c6ec981 (patch) | |
tree | 67600c0278117d966372a6a01be00f899f378d06 /pr/include | |
parent | 8ee9c582465595c2fd15bbca882de87c0609c90d (diff) | |
download | nspr-hg-f25e09f789461bb344e5c0a364ec22223c6ec981.tar.gz |
Bugzilla bug #39696: implemented the NSPR atomic routines in
assembly language for Solaris/x86.
Modified files: _solaris.h, solaris.c, os_SunOS_x86.s
Diffstat (limited to 'pr/include')
-rw-r--r-- | pr/include/md/_solaris.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pr/include/md/_solaris.h b/pr/include/md/_solaris.h index 5f8ee334..1b024f04 100644 --- a/pr/include/md/_solaris.h +++ b/pr/include/md/_solaris.h @@ -45,6 +45,8 @@ #define NEED_STRFTIME_LOCK /* + * Intel x86 has atomic instructions. + * * Sparc v8 does not have instructions to efficiently implement * atomic increment/decrement operations. In the local threads * only and pthreads versions, we use the default atomic routine @@ -53,7 +55,7 @@ * in solaris.c, which is actually equivalent to the default * implementation. */ -#ifdef _PR_GLOBAL_THREADS_ONLY +#if defined(i386) || defined(_PR_GLOBAL_THREADS_ONLY) #define _PR_HAVE_ATOMIC_OPS #endif |