From 803f4c21cf62a574fb616de66ce66a5d0d545bcd Mon Sep 17 00:00:00 2001
From: GitHub Action Unreleased
Added
+
+
+
+ Bitwise stdlibSet stdlibOption.force_msgusing Pair)[1, 0, 2, 0, 3, 0, 4]
Option.force(o : option('a)) : 'a
Forcefully escapes the option wrapping assuming it is Some.
+
Forcefully escapes the option wrapping assuming it is Some.
Aborts on None.
Option.force_msg(o : option('a), err : string) : 'a
@@ -1828,6 +1843,48 @@ Func.untuplify3(f : 'a * 'b * 'c => 'd) : ('a, 'b,
Triple.rotl(t : ('a * 'b * 'c)) : ('b * 'c * 'a)
Cyclic rotation of the elements to the left.
+Bitwise
+Bitwise operations on arbitrary precision integers.
+bsr
+Bitwise.bsr(n : int, x : int) : int
+
+Logical bit shift x right n positions.
+bsl
+Bitwise.bsl(n : int, x : int) : int
+
+Logical bit shift x left n positions.
+bsli
+Bitwise.bsli(n : int, x : int, lim : int) : int
+
+Logical bit shift x left n positions, limit to lim bits.
+band
+Bitwise.band(x : int, y : int) : int
+
+Bitwise and of x and y.
+bor
+Bitwise.bor(x : int, y : int) : int
+
+Bitwise or of x and y.
+bxor
+Bitwise.bxor(x : int, y : int) : int
+
+Bitwise xor of x and y.
+bnot
+Bitwise.bnot(x : int) : int
+
+Bitwise not of x. Defined and implemented as bnot(x) = bxor(x, -1).
+uband
+Bitwise.uband(x : int, y : int) : int
+
+Bitwise and of non-negative numbers x and y.
+ubor
+Bitwise.ubor(x : int, y : int) : int
+
+Bitwise or of non-negative x and y.
+ubxor
+Bitwise.ubxor(x : int, y : int) : int
+
+Bitwise xor of non-negative x and y.
BLS12_381
Types
fp