set.h 637 B

1234567891011121314151617181920212223
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. #ifndef LANG_NCGG_SET_H
  7. #define LANG_NCGG_SET_H
  8. #include <cgg_cg.h>
  9. #define BIS(sp,n) (sp)[(n)>>4] |= 1<<((n)&0xF)
  10. #define BIC(sp,n) (sp)[(n)>>4] &= ~(1<<((n)&0xF))
  11. #define BIT(sp,n) (((sp)[(n)>>4]&(1<<((n)&0xF)))!=0)
  12. /* util/ncgg/set.c */
  13. int setlookup(set_t s);
  14. void make_std_sets(void);
  15. set_t ident_to_set(char *name);
  16. set_t setproduct(set_t s1, set_t s2);
  17. set_t setsum(set_t s1, set_t s2);
  18. set_t setdiff(set_t s1, set_t s2);
  19. #endif /* LANG_NCGG_SET_H */