Skip to content

Commit

Permalink
Tweaks to bits class docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Izaakwltn committed Oct 2, 2024
1 parent efe0b03 commit 975b093
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions library/bits.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,16 @@
(coalton-toplevel
(define-class (Num :int => Bits :int)
"Operations on the bits of twos-complement integers"
(and "The bitwise logical and of two integers" (:int -> :int -> :int))
(or "The bitwise logical or of two integers" (:int -> :int -> :int))
(xor "The bitwise logical exclusive or of two integers" (:int -> :int -> :int))
(not "The bitwise logical not of two integers" (:int -> :int))
(shift "The arithmetic left-shift of an integer by an integer number of bits" (Integer -> :int -> :int))))
(and "The bitwise logical `and` of two integers"
(:int -> :int -> :int))
(or "The bitwise logical `or` of two integers"
(:int -> :int -> :int))
(xor "The bitwise logical exclusive `or` of two integers"
(:int -> :int -> :int))
(not "The bitwise logical `not` of two integers"
(:int -> :int))
(shift "The arithmetic left-shift of an integer by an integer number of bits"
(Integer -> :int -> :int))))

#+sb-package-locks
(sb-ext:lock-package "COALTON-LIBRARY/BITS")
Expand Down

0 comments on commit 975b093

Please sign in to comment.