From 59203c63bb777a3bacec32fb8830fba33540e809 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:35:29 +0200 Subject: Adding upstream version 127.0. Signed-off-by: Daniel Baumann --- .../src/external/petamoriken/float16/float16.d.ts | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'dom/webgpu/tests/cts/checkout/src/external/petamoriken/float16/float16.d.ts') diff --git a/dom/webgpu/tests/cts/checkout/src/external/petamoriken/float16/float16.d.ts b/dom/webgpu/tests/cts/checkout/src/external/petamoriken/float16/float16.d.ts index c9d66ab7ca..7e79bc177c 100644 --- a/dom/webgpu/tests/cts/checkout/src/external/petamoriken/float16/float16.d.ts +++ b/dom/webgpu/tests/cts/checkout/src/external/petamoriken/float16/float16.d.ts @@ -330,6 +330,26 @@ export interface Float16Array { */ subarray(begin?: number, end?: number): Float16Array; + /** + * Copies the array and returns the copy with the elements in reverse order. + */ + toReversed(): Float16Array; + + /** + * Copies and sorts the array. + * @param compareFn Function used to determine the order of the elements. It is expected to return + * a negative value if first argument is less than second argument, zero if they're equal and a positive + * value otherwise. If omitted, the elements are sorted in ascending. + */ + toSorted(compareFn?: (a: number, b: number) => number): Float16Array; + + /** + * Copies the array and replaces the element at the given index with the provided value. + * @param index The zero-based location in the array for which to replace an element. + * @param value Element to insert into the array in place of the replaced element. + */ + with(index: number, value: number): Float16Array; + /** * Converts a number to a string by using the current locale. */ @@ -468,4 +488,11 @@ export declare function setFloat16( * Returns the nearest half-precision float representation of a number. * @param x A numeric expression. */ +export declare function f16round(x: number): number; + +/** + * Returns the nearest half-precision float representation of a number. + * @alias f16round + * @param x A numeric expression. + */ export declare function hfround(x: number): number; -- cgit v1.2.3