Added types for some bitwise operations.
This commit is contained in:
parent
674046f39d
commit
07c1f1e94f
|
@ -133,6 +133,23 @@
|
|||
[quotient/remainder (cl->* (-Nat -Nat . -> . (-values (list -Nat -Nat)))
|
||||
(-Integer -Integer . -> . (-values (list -Integer -Integer))))]
|
||||
|
||||
[arithmetic-shift (cl->* (-Nat -Nat . -> . -Nat)
|
||||
(-Integer -Integer . -> . -Integer))]
|
||||
[bitwise-and (cl->* (null -Nat . ->* . -Nat)
|
||||
(null -Integer . ->* . -Integer))]
|
||||
[bitwise-ior (cl->* (null -Nat . ->* . -Nat)
|
||||
(null -Integer . ->* . -Integer))]
|
||||
[bitwise-not (cl->* (null -Nat . ->* . -Nat)
|
||||
(null -Integer . ->* . -Integer))]
|
||||
[bitwise-xor (cl->* (null -Nat . ->* . -Nat)
|
||||
(null -Integer . ->* . -Integer))]
|
||||
[bitwise-bit-set? (-> -Integer -Integer B)]
|
||||
[bitwise-bit-field (-> -Integer -Integer -Integer -Integer)]
|
||||
[integer-length (-> -Integer -Nat)]
|
||||
|
||||
[abs (cl->* (-Integer . -> . -Nat)
|
||||
(-Real . -> . -Real))]
|
||||
|
||||
;; exactness
|
||||
[exact->inexact (cl->*
|
||||
(-Real . -> . -Flonum)
|
||||
|
|
|
@ -465,20 +465,6 @@
|
|||
|
||||
[match:error ((list) Univ . ->* . (Un))]
|
||||
|
||||
[arithmetic-shift (cl->* (-Nat -Nat . -> . -Nat)
|
||||
(-Integer -Integer . -> . -Integer))]
|
||||
[bitwise-and (cl->* (null -Nat . ->* . -Nat)
|
||||
(null -Integer . ->* . -Integer))]
|
||||
[bitwise-ior (cl->* (null -Nat . ->* . -Nat)
|
||||
(null -Integer . ->* . -Integer))]
|
||||
[bitwise-not (cl->* (null -Nat . ->* . -Nat)
|
||||
(null -Integer . ->* . -Integer))]
|
||||
[bitwise-xor (cl->* (null -Nat . ->* . -Nat)
|
||||
(null -Integer . ->* . -Integer))]
|
||||
|
||||
[abs (cl->* (-Integer . -> . -Nat)
|
||||
(-Real . -> . -Real))]
|
||||
|
||||
[file-exists? (-Pathlike . -> . B)]
|
||||
[string->symbol (-String . -> . Sym)]
|
||||
[symbol->string (Sym . -> . -String)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user