Need it for a program I'm writing (repeated squaring to comput x^n). I can't seem to find the syntax for it, or if it is even supported.
They're available within the Word8
and Word
structures.
let
open Word8
infix andb orb xorb notb << >> ~>>
in
print (Word8.fmt StringCvt.BIN 0wxF) (* 1111 *)
; print "\n"
; print (Word8.fmt StringCvt.BIN 0wxA) (* 1010 *)
; print "\n"
; print (Word8.fmt StringCvt.BIN (0wxF andb 0wxA)) (* 1010 *)
; print "\n"
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With