@@ -791,9 +791,9 @@ declare function v128(a: i8, b: i8, c: i8, d: i8, e: i8, f: i8, g: i8, h: i8, i:
791
791
declare namespace v128 {
792
792
/** Creates a vector with identical lanes. */
793
793
export function splat < T > ( x : T ) : v128 ;
794
- /** Extracts one lane as a scalar. */
794
+ /** Extracts one lane as a scalar. idx argument needs to be compile time constant. */
795
795
export function extract_lane < T > ( x : v128 , idx : u8 ) : T ;
796
- /** Replaces one lane. */
796
+ /** Replaces one lane. idx argument needs to be compile time constant. */
797
797
export function replace_lane < T > ( x : v128 , idx : u8 , value : T ) : v128 ;
798
798
/** Selects lanes from either vector according to the specified lane indexes. */
799
799
export function shuffle < T > ( a : v128 , b : v128 , ...lanes : u8 [ ] ) : v128 ;
@@ -1051,11 +1051,11 @@ declare function i8x16(a: i8, b: i8, c: i8, d: i8, e: i8, f: i8, g: i8, h: i8, i
1051
1051
declare namespace i8x16 {
1052
1052
/** Creates a vector with sixteen identical 8-bit integer lanes. */
1053
1053
export function splat ( x : i8 ) : v128 ;
1054
- /** Extracts one 8-bit integer lane as a signed scalar. */
1054
+ /** Extracts one 8-bit integer lane as a signed scalar. idx argument needs to be compile time constant. */
1055
1055
export function extract_lane_s ( x : v128 , idx : u8 ) : i8 ;
1056
- /** Extracts one 8-bit integer lane as an unsigned scalar. */
1056
+ /** Extracts one 8-bit integer lane as an unsigned scalar. idx argument needs to be compile time constant. */
1057
1057
export function extract_lane_u ( x : v128 , idx : u8 ) : u8 ;
1058
- /** Replaces one 8-bit integer lane. */
1058
+ /** Replaces one 8-bit integer lane. idx argument needs to be compile time constant. */
1059
1059
export function replace_lane ( x : v128 , idx : u8 , value : i8 ) : v128 ;
1060
1060
/** Adds each 8-bit integer lane. */
1061
1061
export function add ( a : v128 , b : v128 ) : v128 ;
@@ -1146,11 +1146,11 @@ declare function i16x8(a: i16, b: i16, c: i16, d: i16, e: i16, f: i16, g: i16, h
1146
1146
declare namespace i16x8 {
1147
1147
/** Creates a vector with eight identical 16-bit integer lanes. */
1148
1148
export function splat ( x : i16 ) : v128 ;
1149
- /** Extracts one 16-bit integer lane as a signed scalar. */
1149
+ /** Extracts one 16-bit integer lane as a signed scalar. idx argument needs to be compile time constant. */
1150
1150
export function extract_lane_s ( x : v128 , idx : u8 ) : i16 ;
1151
- /** Extracts one 16-bit integer lane as an unsigned scalar. */
1151
+ /** Extracts one 16-bit integer lane as an unsigned scalar. idx argument needs to be compile time constant. */
1152
1152
export function extract_lane_u ( x : v128 , idx : u8 ) : u16 ;
1153
- /** Replaces one 16-bit integer lane. */
1153
+ /** Replaces one 16-bit integer lane. idx argument needs to be compile time constant. */
1154
1154
export function replace_lane ( x : v128 , idx : u8 , value : i16 ) : v128 ;
1155
1155
/** Adds each 16-bit integer lane. */
1156
1156
export function add ( a : v128 , b : v128 ) : v128 ;
@@ -1267,9 +1267,9 @@ declare function i32x4(a: i32, b: i32, c: i32, d: i32): v128;
1267
1267
declare namespace i32x4 {
1268
1268
/** Creates a vector with four identical 32-bit integer lanes. */
1269
1269
export function splat ( x : i32 ) : v128 ;
1270
- /** Extracts one 32-bit integer lane as a scalar. */
1270
+ /** Extracts one 32-bit integer lane as a scalar. idx argument needs to be compile time constant. */
1271
1271
export function extract_lane ( x : v128 , idx : u8 ) : i32 ;
1272
- /** Replaces one 32-bit integer lane. */
1272
+ /** Replaces one 32-bit integer lane. idx argument needs to be compile time constant. */
1273
1273
export function replace_lane ( x : v128 , idx : u8 , value : i32 ) : v128 ;
1274
1274
/** Adds each 32-bit integer lane. */
1275
1275
export function add ( a : v128 , b : v128 ) : v128 ;
@@ -1416,9 +1416,9 @@ declare function i64x2(a: i64, b: i64): v128;
1416
1416
declare namespace i64x2 {
1417
1417
/** Creates a vector with two identical 64-bit integer lanes. */
1418
1418
export function splat ( x : i64 ) : v128 ;
1419
- /** Extracts one 64-bit integer lane as a scalar. */
1419
+ /** Extracts one 64-bit integer lane as a scalar. `idx` argument need to be compile time constant */
1420
1420
export function extract_lane ( x : v128 , idx : u8 ) : i64 ;
1421
- /** Replaces one 64-bit integer lane. */
1421
+ /** Replaces one 64-bit integer lane. idx argument needs to be compile time constant. */
1422
1422
export function replace_lane ( x : v128 , idx : u8 , value : i64 ) : v128 ;
1423
1423
/** Adds each 64-bit integer lane. */
1424
1424
export function add ( a : v128 , b : v128 ) : v128 ;
@@ -1485,9 +1485,9 @@ declare function f32x4(a: f32, b: f32, c: f32, d: f32): v128;
1485
1485
declare namespace f32x4 {
1486
1486
/** Creates a vector with four identical 32-bit float lanes. */
1487
1487
export function splat ( x : f32 ) : v128 ;
1488
- /** Extracts one 32-bit float lane as a scalar. */
1488
+ /** Extracts one 32-bit float lane as a scalar. idx argument needs to be compile time constant. */
1489
1489
export function extract_lane ( x : v128 , idx : u8 ) : f32 ;
1490
- /** Replaces one 32-bit float lane. */
1490
+ /** Replaces one 32-bit float lane. idx argument needs to be compile time constant. */
1491
1491
export function replace_lane ( x : v128 , idx : u8 , value : f32 ) : v128 ;
1492
1492
/** Adds each 32-bit float lane. */
1493
1493
export function add ( a : v128 , b : v128 ) : v128 ;
@@ -1575,9 +1575,9 @@ declare function f64x2(a: f64, b: f64): v128;
1575
1575
declare namespace f64x2 {
1576
1576
/** Creates a vector with two identical 64-bit float lanes. */
1577
1577
export function splat ( x : f64 ) : v128 ;
1578
- /** Extracts one 64-bit float lane as a scalar. */
1578
+ /** Extracts one 64-bit float lane as a scalar. idx argument needs to be compile time constant. */
1579
1579
export function extract_lane ( x : v128 , idx : u8 ) : f64 ;
1580
- /** Replaces one 64-bit float lane. */
1580
+ /** Replaces one 64-bit float lane. idx argument needs to be compile time constant. */
1581
1581
export function replace_lane ( x : v128 , idx : u8 , value : f64 ) : v128 ;
1582
1582
/** Adds each 64-bit float lane. */
1583
1583
export function add ( a : v128 , b : v128 ) : v128 ;
0 commit comments