From 824ff4094c10906aeed0317b27c1ef5aac7ebb61 Mon Sep 17 00:00:00 2001 From: vsc Date: Fri, 15 Oct 2010 02:05:20 +0100 Subject: [PATCH] simplify RW locks --- C/sysbits.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/C/sysbits.c b/C/sysbits.c index 752499a7c..e5336667b 100755 --- a/C/sysbits.c +++ b/C/sysbits.c @@ -3487,28 +3487,4 @@ rw_lock_voodoo(void) { #endif /* sparc */ -#if (defined(i386) || defined(__x86_64__) ) && !defined(__APPLE__) && !defined(__CYGWIN__) -asm( - -".align 4\n" -".globl __write_lock_failed\n" -"__write_lock_failed:\n" -" lock; addl $" RW_LOCK_BIAS_STR ",(%eax)\n" -"1: cmpl $" RW_LOCK_BIAS_STR ",(%eax)\n" -" jne 1b\n" -" lock; subl $" RW_LOCK_BIAS_STR ",(%eax)\n" -" jnz __write_lock_failed\n" -" ret\n" -".align 4\n" -".globl __read_lock_failed\n" -"__read_lock_failed:\n" -" lock ; incl (%eax)\n" -"1: cmpl $1,(%eax)\n" -" js 1b\n" -" lock ; decl (%eax)\n" -" js __read_lock_failed\n" -" ret\n" - -); -#endif /* i386 */ #endif /* YAPOR || THREADS */