Skip to content

Commit 79d2e6a

Browse files
fix: change function signature of v128.pmin and v128.pmax (#2379)
1 parent a584906 commit 79d2e6a

File tree

5 files changed

+163
-130
lines changed

5 files changed

+163
-130
lines changed

Diff for: NOTICE

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ under the licensing terms detailed in LICENSE:
4949
* Peter Hayman <[email protected]>
5050
* ApsarasX <[email protected]>
5151
* Adrien Zinger <[email protected]>
52+
* Ruixiang Chen <[email protected]>
5253

5354
Portions of this software are derived from third-party works licensed under
5455
the following terms:

Diff for: std/assembly/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -844,9 +844,9 @@ declare namespace v128 {
844844
/** Computes the maximum of each lane. */
845845
export function max<T>(a: v128, b: v128): v128;
846846
/** Computes the pseudo-minimum of each lane. */
847-
export function pmin<T>(a: v128, b: v128): v128;
847+
export function pmin<T extends f32 | f64>(a: v128, b: v128): v128;
848848
/** Computes the pseudo-maximum of each lane. */
849-
export function pmax<T>(a: v128, b: v128): v128;
849+
export function pmax<T extends f32 | f64>(a: v128, b: v128): v128;
850850
/** Computes the dot product of two lanes each, yielding lanes one size wider than the input. */
851851
export function dot<T extends i16>(a: v128, b: v128): v128;
852852
/** Computes the average of each lane. */

0 commit comments

Comments
 (0)