Skip to content

Commit f00c481

Browse files
authored
Fix SIMD narrowing definition (AssemblyScript#854)
1 parent 8b8a3fb commit f00c481

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

std/assembly/builtins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@ export namespace v128 {
11231123

11241124
// @ts-ignore: decorator
11251125
@builtin
1126-
export declare function narrow<T>(a: v128): v128;
1126+
export declare function narrow<T>(a: v128, b: v128): v128;
11271127

11281128
// @ts-ignore: decorator
11291129
@builtin

std/assembly/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ declare namespace v128 {
606606
/** Truncates each lane of a 128-bit vector from floating point to integer with saturation. Takes the target type. */
607607
export function trunc_sat<TTo = i32 | u32 | i64 | u64>(a: v128): v128;
608608
/** Narrows each lane of two 128-bit vectors to their respective narrower lanes. */
609-
export function narrow<TFrom = i16 | i32>(a: v128): v128;
609+
export function narrow<TFrom = i16 | i32>(a: v128, b: v128): v128;
610610
/** Widens the low lanes of a 128-bit vector to their respective wider lanes. */
611611
export function widen_low<TFrom = i8 | i16>(a: v128): v128;
612612
/** Widens the high lanes of a 128-bit vector to their respective wider lanes. */

0 commit comments

Comments
 (0)