Skip to content

Commit 9ec3507

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

File tree

4 files changed

+172
-140
lines changed

4 files changed

+172
-140
lines changed

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

+2-2
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)