-
-#define LOGSIZE 4
-
-static atomic_flag volatile __atomic_flag_anon_table__[ 1 << LOGSIZE ] =
-{
- ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT,
- ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT,
- ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT,
- ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT, ATOMIC_FLAG_INIT,
-};
-
-volatile atomic_flag* __atomic_flag_for_address__( const volatile void* __z__ )
-{
- uintptr_t __u__ = (uintptr_t)__z__;
- __u__ += (__u__ >> 2) + (__u__ << 4);
- __u__ += (__u__ >> 7) + (__u__ << 5);
- __u__ += (__u__ >> 17) + (__u__ << 13);
- if ( sizeof(uintptr_t) > 4 ) __u__ += (__u__ >> 31);
- __u__ &= ~((~(uintptr_t)0) << LOGSIZE);
- return __atomic_flag_anon_table__ + __u__;
-}
-