IdrisDoc
: Data.Bits
Index
Data.Bits
zext'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
(
n
+
m
))
zeroUnused
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
)
zeroExtend
:
Bits
n
->
Bits
(
n
+
m
)
xor'
:
machineTy
n
->
machineTy
n
->
machineTy
n
xor
:
Bits
n
->
Bits
n
->
Bits
n
urem'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
)
urem
:
Bits
n
->
Bits
n
->
Bits
n
unsetBit
:
Fin
n
->
Bits
n
->
Bits
n
udiv'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
)
udiv
:
Bits
n
->
Bits
n
->
Bits
n
truncate
:
Bits
(
m
+
n
) ->
Bits
n
trunc'
:
machineTy
(
nextBytes
(
m
+
n
)) ->
machineTy
(
nextBytes
n
)
times'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
)
times
:
Bits
n
->
Bits
n
->
Bits
n
srem'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
)
srem
:
Bits
n
->
Bits
n
->
Bits
n
shiftRightLogical'
:
machineTy
n
->
machineTy
n
->
machineTy
n
shiftRightLogical
:
Bits
n
->
Bits
n
->
Bits
n
shiftRightArithmetic'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
)
shiftRightArithmetic
:
Bits
n
->
Bits
n
->
Bits
n
shiftLeft'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
)
shiftLeft
:
Bits
n
->
Bits
n
->
Bits
n
sext'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
(
n
+
m
))
setBit
:
Fin
n
->
Bits
n
->
Bits
n
sdiv'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
)
sdiv
:
Bits
n
->
Bits
n
->
Bits
n
plus'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
)
plus
:
Bits
n
->
Bits
n
->
Bits
n
pad8'
:
Nat
-> (
Bits8
->
Bits8
->
Bits8
) ->
Bits8
->
Bits8
->
Bits8
pad8
:
Nat
-> (
Bits8
->
Bits8
->
Bits8
) ->
Bits8
->
Bits8
->
Bits8
pad64'
:
Nat
-> (
Bits64
->
Bits64
->
Bits64
) ->
Bits64
->
Bits64
->
Bits64
pad64
:
Nat
-> (
Bits64
->
Bits64
->
Bits64
) ->
Bits64
->
Bits64
->
Bits64
pad32'
:
Nat
-> (
Bits32
->
Bits32
->
Bits32
) ->
Bits32
->
Bits32
->
Bits32
pad32
:
Nat
-> (
Bits32
->
Bits32
->
Bits32
) ->
Bits32
->
Bits32
->
Bits32
pad16'
:
Nat
-> (
Bits16
->
Bits16
->
Bits16
) ->
Bits16
->
Bits16
->
Bits16
pad16
:
Nat
-> (
Bits16
->
Bits16
->
Bits16
) ->
Bits16
->
Bits16
->
Bits16
or'
:
machineTy
n
->
machineTy
n
->
machineTy
n
or
:
Bits
n
->
Bits
n
->
Bits
n
nextPow2
:
Nat
->
Nat
nextBytes
:
Nat
->
Nat
natToBits'
:
machineTy
n
->
Nat
->
machineTy
n
natToBits
:
Nat
->
machineTy
n
minus'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
)
minus
:
Bits
n
->
Bits
n
->
Bits
n
machineTy
:
Nat
->
Type
lte
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
Int
lt
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
Int
intToBits'
:
Integer
->
machineTy
(
nextBytes
n
)
intToBits
:
Integer
->
Bits
n
gte
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
Int
gt
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
Int
getPad
:
Nat
->
machineTy
n
getBit
:
Fin
n
->
Bits
n
->
Bool
eq
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
) ->
Int
complement'
:
machineTy
(
nextBytes
n
) ->
machineTy
(
nextBytes
n
)
complement
:
Bits
n
->
Bits
n
bitsUsed
:
Nat
->
Nat
bitsToStr
:
Bits
n
->
String
bitsToInt'
:
machineTy
(
nextBytes
n
) ->
Integer
bitsToInt
:
Bits
n
->
Integer
bitAt
:
Fin
n
->
Bits
n
and'
:
machineTy
n
->
machineTy
n
->
machineTy
n
and
:
Bits
n
->
Bits
n
->
Bits
n
data
Bits
:
Nat
->
Type
MkBits
:
machineTy
(
nextBytes
n
) ->
Bits
n