[Freeswitch-svn] [commit] r3998 - in freeswitch/trunk: libs/portaudio/src/common src/mod/endpoints/mod_portaudio
Freeswitch SVN
mikej at freeswitch.org
Fri Jan 19 07:49:10 EST 2007
Author: mikej
Date: Fri Jan 19 07:49:10 2007
New Revision: 3998
Modified:
freeswitch/trunk/libs/portaudio/src/common/pa_ringbuffer.c
freeswitch/trunk/src/mod/endpoints/mod_portaudio/pa_ringbuffer.c
Log:
indications are that we can use mfence, lfence, sfence on x86_64, we will need to test and confirm this, but this should fix the build on 64 bit linux gcc at least. need testers to confirm this.
Modified: freeswitch/trunk/libs/portaudio/src/common/pa_ringbuffer.c
==============================================================================
--- freeswitch/trunk/libs/portaudio/src/common/pa_ringbuffer.c (original)
+++ freeswitch/trunk/libs/portaudio/src/common/pa_ringbuffer.c Fri Jan 19 07:49:10 2007
@@ -85,7 +85,7 @@
# define PaUtil_FullMemoryBarrier() asm volatile("sync":::"memory")
# define PaUtil_ReadMemoryBarrier() asm volatile("sync":::"memory")
# define PaUtil_WriteMemoryBarrier() asm volatile("sync":::"memory")
-# elif defined( __i386__ ) || defined( __i486__ ) || defined( __i586__ ) || defined( __i686__ )
+# elif defined( __i386__ ) || defined( __i486__ ) || defined( __i586__ ) || defined( __i686__ ) || defined(__x86_64__)
# define PaUtil_FullMemoryBarrier() asm volatile("mfence":::"memory")
# define PaUtil_ReadMemoryBarrier() asm volatile("lfence":::"memory")
# define PaUtil_WriteMemoryBarrier() asm volatile("sfence":::"memory")
Modified: freeswitch/trunk/src/mod/endpoints/mod_portaudio/pa_ringbuffer.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_portaudio/pa_ringbuffer.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_portaudio/pa_ringbuffer.c Fri Jan 19 07:49:10 2007
@@ -85,7 +85,7 @@
# define PaUtil_FullMemoryBarrier() asm volatile("sync":::"memory")
# define PaUtil_ReadMemoryBarrier() asm volatile("sync":::"memory")
# define PaUtil_WriteMemoryBarrier() asm volatile("sync":::"memory")
-# elif defined( __i386__ ) || defined( __i486__ ) || defined( __i586__ ) || defined( __i686__ )
+# elif defined( __i386__ ) || defined( __i486__ ) || defined( __i586__ ) || defined( __i686__ ) || defined(__x86_64__)
# define PaUtil_FullMemoryBarrier() asm volatile("mfence":::"memory")
# define PaUtil_ReadMemoryBarrier() asm volatile("lfence":::"memory")
# define PaUtil_WriteMemoryBarrier() asm volatile("sfence":::"memory")
More information about the Freeswitch-svn
mailing list