60.sld 676 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. (define-library (srfi 60)
  2. (export
  3. ;; Bitwise Operations
  4. logand
  5. bitwise-and
  6. logior
  7. bitwise-ior
  8. logxor
  9. bitwise-xor
  10. lognot
  11. bitwise-not
  12. bitwise-if
  13. bitwise-merge
  14. logtest
  15. any-bits-set?
  16. ;; Integer Properties
  17. logcount
  18. bit-count
  19. integer-length
  20. log2-binary-factors
  21. first-set-bit
  22. ;; Bit Within Word
  23. logbit?
  24. bit-set?
  25. copy-bit
  26. ;; Field of Bits
  27. bit-field
  28. copy-bit-field
  29. ash
  30. arithmetic-shift
  31. rotate-bit-field
  32. reverse-bit-field
  33. ;; Bits as Booleans
  34. integer->list
  35. integer->list
  36. list->integer
  37. booleans->integer
  38. )
  39. (import (scheme base))
  40. (include "60.upstream.scm"))