@hazae41/stdbob 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/mods/bigints/mod.ts +32 -0
package/package.json
CHANGED
package/src/mods/bigints/mod.ts
CHANGED
|
@@ -56,6 +56,10 @@ export namespace bigints {
|
|
|
56
56
|
@external("bigints", "dec")
|
|
57
57
|
export declare function dec(value: bigintref): bigintref
|
|
58
58
|
|
|
59
|
+
// @ts-ignore: decorator
|
|
60
|
+
@external("bigints", "neg")
|
|
61
|
+
export declare function neg(value: bigintref): bigintref
|
|
62
|
+
|
|
59
63
|
// @ts-ignore: decorator
|
|
60
64
|
@external("bigints", "add")
|
|
61
65
|
export declare function add(left: bigintref, right: bigintref): bigintref
|
|
@@ -76,6 +80,34 @@ export namespace bigints {
|
|
|
76
80
|
@external("bigints", "pow")
|
|
77
81
|
export declare function pow(left: bigintref, right: bigintref): bigintref
|
|
78
82
|
|
|
83
|
+
// @ts-ignore: decorator
|
|
84
|
+
@external("bigints", "mod")
|
|
85
|
+
export declare function mod(left: bigintref, right: bigintref): bigintref
|
|
86
|
+
|
|
87
|
+
// @ts-ignore: decorator
|
|
88
|
+
@external("bigints", "lt")
|
|
89
|
+
export declare function lt(left: bigintref, right: bigintref): bool
|
|
90
|
+
|
|
91
|
+
// @ts-ignore: decorator
|
|
92
|
+
@external("bigints", "lte")
|
|
93
|
+
export declare function lte(left: bigintref, right: bigintref): bool
|
|
94
|
+
|
|
95
|
+
// @ts-ignore: decorator
|
|
96
|
+
@external("bigints", "gt")
|
|
97
|
+
export declare function gt(left: bigintref, right: bigintref): bool
|
|
98
|
+
|
|
99
|
+
// @ts-ignore: decorator
|
|
100
|
+
@external("bigints", "gte")
|
|
101
|
+
export declare function gte(left: bigintref, right: bigintref): bool
|
|
102
|
+
|
|
103
|
+
// @ts-ignore: decorator
|
|
104
|
+
@external("bigints", "eq")
|
|
105
|
+
export declare function eq(left: bigintref, right: bigintref): bool
|
|
106
|
+
|
|
107
|
+
// @ts-ignore: decorator
|
|
108
|
+
@external("bigints", "neq")
|
|
109
|
+
export declare function neq(left: bigintref, right: bigintref): bool
|
|
110
|
+
|
|
79
111
|
// @ts-ignore: decorator
|
|
80
112
|
@external("bigints", "from_base16")
|
|
81
113
|
export declare function fromBase16(text: textref): bigintref
|