Comparing version 0.2.10 to 0.2.11
@@ -1,3 +0,4 @@ | ||
import { u128 } from '../../assembly/integer/safe/u128'; | ||
import { u128Safe as u128 } from '..'; | ||
describe("Basic operations", () => { | ||
@@ -4,0 +5,0 @@ it("Should add two numbers 1", () => { |
export * from "./u128"; | ||
export * from "./u256"; | ||
export * from "./safe"; |
@@ -1,2 +0,2 @@ | ||
import { u256 } from './u256'; | ||
import { u256Safe as u256 } from './u256'; | ||
import { i128 } from './i128'; | ||
@@ -17,3 +17,3 @@ import { i256 } from './i256'; | ||
// export namespace safe { | ||
export class u128 extends U128 { | ||
class u128 extends U128 { | ||
@@ -278,1 +278,3 @@ @inline static get Zero(): u128 { return new u128(); } | ||
} | ||
export { u128 as u128Safe }; |
import { u256 as U256 } from '../u256'; | ||
export class u256 extends U256 { | ||
class u256 extends U256 { | ||
// TODO override add, sub, inc, dec, mul, div, rem operators | ||
} | ||
export { u256 as u256Safe }; |
@@ -905,3 +905,2 @@ import { i128 } from './i128'; | ||
*/ | ||
@inline | ||
clone(): u128 { | ||
@@ -908,0 +907,0 @@ return new u128(this.lo, this.hi); |
@@ -608,3 +608,2 @@ import { i128 } from './i128'; | ||
@inline | ||
clone(): u256 { | ||
@@ -611,0 +610,0 @@ return new u256(this.lo1, this.lo2, this.hi1, this.hi2); |
{ | ||
"name": "as-bignum", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "128 and 256 bits integer and fixed point arithmetics for AssemblyScript. Also support checking overflow/underflow", | ||
@@ -5,0 +5,0 @@ "main": "js/index.js", |
746599
38
4069