Function
Static Public Summary | ||
public |
|
|
public |
and64(a: *, b: *) |
|
public |
Converts a 8-bytes big endian array to a 64-bit integer (also big endian). |
|
public |
compare(a: *, b: *): * |
|
public |
get64(hi: *, lo: *) |
|
public |
mul64(a: *, b: *): * Multiplies two uint64 into one uint64. |
|
public |
not64(a: *) |
|
public |
Left rotate a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order. |
|
public |
Right rotate a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order. |
|
public |
Left shift a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order. |
|
public |
Right shift a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order. |
|
public |
xor64(a: *, b: *) |
Static Public
public add64(a: *, b: *): undefined[] source
import {add64} from '@arithmetic-type/uint64/src/add64.js'
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * |
public and64(a: *, b: *) source
import {and64} from '@arithmetic-type/uint64/src/and64.js'
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * |
public big64(a: Array, o: Number): Array source
import {big64} from '@arithmetic-type/uint64/src/big64.js'
Converts a 8-bytes big endian array to a 64-bit integer (also big endian).
public compare(a: *, b: *): * source
import {compare} from '@arithmetic-type/uint64/src/compare.js'
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * |
Return:
* |
public get64(hi: *, lo: *) source
import {get64} from '@arithmetic-type/uint64/src/get64.js'
Params:
Name | Type | Attribute | Description |
hi | * | ||
lo | * |
public mul64(a: *, b: *): * source
import {mul64} from '@arithmetic-type/uint64/src/mul64.js'
Multiplies two uint64 into one uint64.
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * |
Return:
* |
public not64(a: *) source
import {not64} from '@arithmetic-type/uint64/src/not64.js'
Params:
Name | Type | Attribute | Description |
a | * |
public rotl64(a: Array, s: Number): Array source
import {rotl64} from '@arithmetic-type/uint64/src/rotl64.js'
Left rotate a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.
public rotr64(a: Array, s: Number): Array source
import {rotr64} from '@arithmetic-type/uint64/src/rotr64.js'
Right rotate a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.
NB: used in the sha2 family
public shl64(a: Array, s: Number): Array source
import {shl64} from '@arithmetic-type/uint64/src/shl64.js'
Left shift a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.
public shr64(a: Array, s: Number): Array source
import {shr64} from '@arithmetic-type/uint64/src/shr64.js'
Right shift a 64-bit unsigned integer given as a pair of two 32-bit signed integers in big endian order.
public xor64(a: *, b: *) source
import {xor64} from '@arithmetic-type/uint64/src/xor64.js'
Params:
Name | Type | Attribute | Description |
a | * | ||
b | * |