diff options
Diffstat (limited to 'dom/webgpu/tests/cts/checkout/src/webgpu/util/constants.ts')
-rw-r--r-- | dom/webgpu/tests/cts/checkout/src/webgpu/util/constants.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/webgpu/tests/cts/checkout/src/webgpu/util/constants.ts b/dom/webgpu/tests/cts/checkout/src/webgpu/util/constants.ts index 5ee819c64e..11f0677316 100644 --- a/dom/webgpu/tests/cts/checkout/src/webgpu/util/constants.ts +++ b/dom/webgpu/tests/cts/checkout/src/webgpu/util/constants.ts @@ -242,6 +242,21 @@ export const kBit = { } as const; export const kValue = { + // Limits of i64 + i64: { + positive: { + min: BigInt(0n), + max: BigInt(9223372036854775807n), + }, + negative: { + min: BigInt(-9223372036854775808n), + max: BigInt(0n), + }, + isOOB: (val: bigint): boolean => { + return val > kValue.i64.positive.max || val < kValue.i64.negative.min; + }, + }, + // Limits of i32 i32: { positive: { |