Searched refs:BigintMath (Results 1 – 5 of 5) sorted by relevance
/development/tools/winscope/src/common/ |
D | bigint_math_test.ts | 17 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);
|
D | bigint_math.ts | 20 export class BigintMath { class
|
/development/tools/winscope/src/trace_processor/ |
D | bigint_math.ts | 15 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/ |
D | time_duration.ts | 17 import {BigintMath} from 'common/bigint_math'; 27 const msString = BigintMath.divideAndRound(
|
D | timestamp_converter.ts | 18 import {BigintMath} from 'common/bigint_math'; 48 const ms = BigintMath.divideAndRound(
|