mirror of
				https://sourceware.org/git/glibc.git
				synced 2025-10-30 10:45:40 +03:00 
			
		
		
		
	Remove unused definitions, and correct __PTHREAD_RWLOCK_FLAGS_OFFSET for __WORDSIZE == 64.
		
			
				
	
	
		
			17 lines
		
	
	
		
			388 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			388 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <bits/wordsize.h>
 | |
| 
 | |
| /* These values are based on internal generic types from
 | |
|    bits/struct_mutex.h and bits/struct_rwlock.h.  */
 | |
| 
 | |
| #if __WORDSIZE == 64
 | |
| # define __PTHREAD_MUTEX_KIND_OFFSET		16
 | |
| #else
 | |
| # define __PTHREAD_MUTEX_KIND_OFFSET		12
 | |
| #endif
 | |
| 
 | |
| #if __BYTE_ORDER == __BIG_ENDIAN
 | |
| # define __PTHREAD_RWLOCK_FLAGS_OFFSET		27
 | |
| #else
 | |
| # define __PTHREAD_RWLOCK_FLAGS_OFFSET		24
 | |
| #endif
 |