mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* regint.h (BITS_IN_ROOM, BS_ROOM, BS_BIT): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									9accaad5c4
								
							
						
					
					
						commit
						d28c18966d
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										6
									
								
								regint.h
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								regint.h
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -390,7 +390,7 @@ typedef unsigned int  BitStatusType;
 | 
			
		|||
/* bitset */
 | 
			
		||||
#define BITS_PER_BYTE      8
 | 
			
		||||
#define SINGLE_BYTE_SIZE   (1 << BITS_PER_BYTE)
 | 
			
		||||
#define BITS_IN_ROOM       (sizeof(Bits) * BITS_PER_BYTE)
 | 
			
		||||
#define BITS_IN_ROOM       ((int)sizeof(Bits) * BITS_PER_BYTE)
 | 
			
		||||
#define BITSET_SIZE        (SINGLE_BYTE_SIZE / BITS_IN_ROOM)
 | 
			
		||||
 | 
			
		||||
#ifdef PLATFORM_UNALIGNED_WORD_ACCESS
 | 
			
		||||
| 
						 | 
				
			
			@ -408,8 +408,8 @@ typedef Bits*          BitSetRef;
 | 
			
		|||
  for (i = 0; i < (int )BITSET_SIZE; i++) { (bs)[i] = 0; }	\
 | 
			
		||||
} while (0)
 | 
			
		||||
 | 
			
		||||
#define BS_ROOM(bs,pos)            (bs)[pos / BITS_IN_ROOM]
 | 
			
		||||
#define BS_BIT(pos)                (1 << (pos % BITS_IN_ROOM))
 | 
			
		||||
#define BS_ROOM(bs,pos)            (bs)[(int)(pos) / BITS_IN_ROOM]
 | 
			
		||||
#define BS_BIT(pos)                (1 << ((int)(pos) % BITS_IN_ROOM))
 | 
			
		||||
 | 
			
		||||
#define BITSET_AT(bs, pos)         (BS_ROOM(bs,pos) & BS_BIT(pos))
 | 
			
		||||
#define BITSET_SET_BIT(bs, pos)     BS_ROOM(bs,pos) |= BS_BIT(pos)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue