Home
last modified time | relevance | path

Searched refs:BigintMath (Results 1 – 5 of 5) sorted by relevance

/development/tools/winscope/src/common/
Dbigint_math_test.ts17 import {BigintMath} from './bigint_math';
21 expect(BigintMath.divideAndRound(0n, 10n)).toEqual(0n);
22 expect(BigintMath.divideAndRound(10n, 10n)).toEqual(1n);
23 expect(BigintMath.divideAndRound(10n, 6n)).toEqual(2n);
24 expect(BigintMath.divideAndRound(10n, 5n)).toEqual(2n);
25 expect(BigintMath.divideAndRound(10n, 4n)).toEqual(3n);
26 expect(() => BigintMath.divideAndRound(1n, 0n)).toThrowError();
27 expect(BigintMath.divideAndRound(10000n + 4999n, 10000n)).toEqual(1n);
28 expect(BigintMath.divideAndRound(10000n + 5000n, 10000n)).toEqual(2n);
Dbigint_math.ts20 export class BigintMath { class
/development/tools/winscope/src/trace_processor/
Dbigint_math.ts15 export class BigintMath { class
53 step = BigintMath.max(1n, step);
61 step = BigintMath.max(1n, step);
68 step = BigintMath.max(1n, step);
/development/tools/winscope/src/common/time/
Dtime_duration.ts17 import {BigintMath} from 'common/bigint_math';
27 const msString = BigintMath.divideAndRound(
Dtimestamp_converter.ts18 import {BigintMath} from 'common/bigint_math';
48 const ms = BigintMath.divideAndRound(