1 #if defined(__i386__) || defined(__x86_64__)
2 #define NEED_I386_TAS_ASM
3 #define HAS_TEST_AND_SET
4 typedef unsigned char slock_t;
8 #define HAS_TEST_AND_SET
9 typedef unsigned int slock_t;
12 #if defined(__sparc__)
13 #define NEED_SPARC_TAS_ASM
14 #define HAS_TEST_AND_SET
15 typedef unsigned char slock_t;
19 #define NEED_VAX_TAS_ASM
20 #define HAS_TEST_AND_SET
21 typedef unsigned char slock_t;
24 #if defined(__ns32k__)
25 #define NEED_NS32K_TAS_ASM
26 #define HAS_TEST_AND_SET
27 typedef unsigned char slock_t;
31 #define HAS_TEST_AND_SET
32 typedef unsigned char slock_t;
36 #define HAS_TEST_AND_SET
37 typedef unsigned char slock_t;
41 /* # undef HAS_TEST_AND_SET */
44 #if defined(__alpha__)
45 #define HAS_TEST_AND_SET
46 typedef unsigned long slock_t;
49 #if defined(__powerpc__)
50 #define HAS_TEST_AND_SET
51 typedef unsigned int slock_t;