Skip to content

Commit 1b3f5dc

Browse files
author
chen ruixiang
committed
fix: change function signature of v128.pmin and v128.pmax
1 parent d559982 commit 1b3f5dc

File tree

5 files changed

+163
-130
lines changed

5 files changed

+163
-130
lines changed

NOTICE

Lines changed: 1 addition & 0 deletions
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:

std/assembly/index.d.ts

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

0 commit comments

Comments
 (0)