I was testing out this library as I have seen in benchmarks that this library is very good.
this library is also a very nice replacement for JSBI, I was crying in my bed when errors occured when bitwise methods were missing
| Operation |
native BigInts |
JSBI |
| Bitwise negation |
b = ~a |
b = JSBI.bitwiseNot(a) |
| Bitwise “and” |
c = a & b |
c = JSBI.bitwiseAnd(a, b) |
| Bitwise “or” |
c = a | b |
c = JSBI.bitwiseOr(a, b) |
| Bitwise “xor” |
c = a ^ b |
c = JSBI.bitwiseXor(a, b) |
I was testing out this library as I have seen in benchmarks that this library is very good.
this library is also a very nice replacement for JSBI, I was crying in my bed when errors occured when bitwise methods were missing
b = ~ab = JSBI.bitwiseNot(a)c = a & bc = JSBI.bitwiseAnd(a, b)c = a | bc = JSBI.bitwiseOr(a, b)c = a ^ bc = JSBI.bitwiseXor(a, b)