[PD-cvs] pd/src m_fifo.c,1.1.2.6,1.1.2.7

Thomas Grill xovo at users.sourceforge.net
Wed Jan 12 15:51:44 CET 2005


Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10778

Modified Files:
      Tag: devel_0_38
	m_fifo.c 
Log Message:
disabled LOCKFREE for powerpc

Index: m_fifo.c
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/m_fifo.c,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -C2 -d -r1.1.2.6 -r1.1.2.7
*** m_fifo.c	7 Jan 2005 12:57:11 -0000	1.1.2.6
--- m_fifo.c	12 Jan 2005 14:51:41 -0000	1.1.2.7
***************
*** 15,21 ****
  } t_fifocell;
  
! 
  #define LOCKFREE
! 
  
  #ifdef LOCKFREE
--- 15,21 ----
  } t_fifocell;
  
! #ifndef __POWERPC__
  #define LOCKFREE
! #endif
  
  #ifdef LOCKFREE
***************
*** 114,118 ****
   *     works correctly and if it's atomic */
  #define CAS2(mem, old1, old2, new1, new2)					\
! ({ int ret = 0;												\
      __asm__ __volatile__(									\
         "lwarx %0,0,%3       \n"								\
--- 114,120 ----
   *     works correctly and if it's atomic */
  #define CAS2(mem, old1, old2, new1, new2)					\
! ({  __typeof__(old1) tmp1;                                  \
!     __typeof__(old2) tmp2;                                  \
!     int ret = 0;		     								\
      __asm__ __volatile__(									\
         "lwarx %0,0,%3       \n"								\





More information about the Pd-cvs mailing list