Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26916/src
Modified Files: Tag: devel_0_38 m_fifo.c Log Message: ret is a assembly mnemonic... corrected
Index: m_fifo.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/m_fifo.c,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -C2 -d -r1.1.2.5 -r1.1.2.6 *** m_fifo.c 16 Dec 2004 13:30:19 -0000 1.1.2.5 --- m_fifo.c 7 Jan 2005 12:57:11 -0000 1.1.2.6 *************** *** 61,65 **** int CAS(void** mem, void* old, void* new1) { ! int ret = 0; __asm { mov eax, old --- 61,65 ---- int CAS(void** mem, void* old, void* new1) { ! int retv = 0; __asm { mov eax, old *************** *** 68,80 **** lock cmpxchg dword ptr [esi], ebx jnz end ! inc [ret] end: } ! return ret; }
int CAS2(void** mem, void* old1, unsigned long old2, void* new1, unsigned long new2) { ! int ret = 0; __asm { mov eax, old1 --- 68,80 ---- lock cmpxchg dword ptr [esi], ebx jnz end ! inc [retv] end: } ! return retv; }
int CAS2(void** mem, void* old1, unsigned long old2, void* new1, unsigned long new2) { ! int retv = 0; __asm { mov eax, old1 *************** *** 85,92 **** lock cmpxchg8b qword ptr [esi] jnz end ! inc [ret] end: } ! return ret; }
--- 85,92 ---- lock cmpxchg8b qword ptr [esi] jnz end ! inc [retv] end: } ! return retv; }