/[bison]/bison/lib/bitset.h
ViewVC logotype

Diff of /bison/lib/bitset.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by akim, Mon Mar 4 12:07:08 2002 UTC revision 1.3 by akim, Mon Mar 4 14:15:01 2002 UTC
# Line 179  do                                                             \ Line 179  do                                                             \
179  #define bitset_test(SRC, BITNO) BITSET_TEST_ (SRC, BITNO)  #define bitset_test(SRC, BITNO) BITSET_TEST_ (SRC, BITNO)
180  #endif  #endif
181    
182    /* Toggle bit BITNO in bitset BSET and return non-zero if now set.  */
183    extern int bitset_toggle PARAMS ((bitset, bitset_bindex));
184    
185  /* DST = 0.  */  /* DST = 0.  */
186  extern int bitset_zero PARAMS ((bitset));  extern int bitset_zero PARAMS ((bitset));
187    
# Line 215  extern int bitset_xor PARAMS ((bitset, b Line 218  extern int bitset_xor PARAMS ((bitset, b
218  /* DST = SRC1 & ~SRC2.  Return non-zero if DST != SRC1 & ~SRC2.  */  /* DST = SRC1 & ~SRC2.  Return non-zero if DST != SRC1 & ~SRC2.  */
219  extern int bitset_andn PARAMS ((bitset, bitset, bitset));  extern int bitset_andn PARAMS ((bitset, bitset, bitset));
220    
 /* DST = SRC1 | ~SRC2.  Return non-zero if DST != SRC1 | ~SRC2.  */  
 extern int bitset_orn PARAMS ((bitset, bitset, bitset));  
   
221  /* DST = (SRC1 | SRC2) & SRC3.  Return non-zero if  /* DST = (SRC1 | SRC2) & SRC3.  Return non-zero if
222     DST != (SRC1 | SRC2) & SRC3.  */     DST != (SRC1 | SRC2) & SRC3.  */
223  extern int bitset_or_and PARAMS ((bitset, bitset, bitset, bitset));  extern int bitset_or_and PARAMS ((bitset, bitset, bitset, bitset));
# Line 236  extern int bitset_next PARAMS ((bitset, Line 236  extern int bitset_next PARAMS ((bitset,
236  /* Find previous bit set in BSET starting from and including BITNO.  */  /* Find previous bit set in BSET starting from and including BITNO.  */
237  extern int bitset_prev PARAMS ((bitset, bitset_bindex));  extern int bitset_prev PARAMS ((bitset, bitset_bindex));
238    
239    /* Return non-zero if BITNO in SRC is the only set bit.  */
240    extern int bitset_only_set_p PARAMS ((bitset, bitset_bindex));
241    
242  /* Find list of up to NUM bits set in BSET starting from and including  /* Find list of up to NUM bits set in BSET starting from and including
243     *NEXT.  Return with actual number of bits found and with *NEXT     *NEXT.  Return with actual number of bits found and with *NEXT
244     indicating where search stopped.  */     indicating where search stopped.  */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26