@[inline]
ofFnLEAux f returns the BitVec m whose ith bit is f i when i < m, little endian.
Equations
- BitVec.ofFnLEAux m f = Fin.foldr n (fun (i : Fin n) (v : BitVec m) => v.shiftConcat (f i)) 0
Instances For
@[inline]
ofFnLE f returns the BitVec n whose ith bit is f i with little endian ordering.
Equations
- BitVec.ofFnLE f = BitVec.ofFnLEAux n f
Instances For
@[inline]
ofFnBE f returns the BitVec n whose ith bit is f i with big endian ordering.
Equations
- BitVec.ofFnBE f = BitVec.ofFnLE fun (i : Fin n) => f i.rev