From 509ffc4ea4a1bcf3d9bdaf1558144304f9d41a95 Mon Sep 17 00:00:00 2001 From: kazche Date: Wed, 11 Dec 2024 14:18:47 -0800 Subject: [PATCH 1/7] fix to enhance in-line comment for extract_lane functions to include idx argument needs to be compile time constant - issue #2877 --- std/assembly/index.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index 4dbee416a8..6c87790e27 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -791,7 +791,7 @@ declare function v128(a: i8, b: i8, c: i8, d: i8, e: i8, f: i8, g: i8, h: i8, i: declare namespace v128 { /** Creates a vector with identical lanes. */ export function splat(x: T): v128; - /** Extracts one lane as a scalar. */ + /** Extracts one lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): T; /** Replaces one lane. */ export function replace_lane(x: v128, idx: u8, value: T): v128; @@ -1051,9 +1051,9 @@ declare function i8x16(a: i8, b: i8, c: i8, d: i8, e: i8, f: i8, g: i8, h: i8, i declare namespace i8x16 { /** Creates a vector with sixteen identical 8-bit integer lanes. */ export function splat(x: i8): v128; - /** Extracts one 8-bit integer lane as a signed scalar. */ + /** Extracts one 8-bit integer lane as a signed scalar. idx argument needs to be compile time constant. */ export function extract_lane_s(x: v128, idx: u8): i8; - /** Extracts one 8-bit integer lane as an unsigned scalar. */ + /** Extracts one 8-bit integer lane as an unsigned scalar. idx argument needs to be compile time constant. */ export function extract_lane_u(x: v128, idx: u8): u8; /** Replaces one 8-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i8): v128; @@ -1146,9 +1146,9 @@ declare function i16x8(a: i16, b: i16, c: i16, d: i16, e: i16, f: i16, g: i16, h declare namespace i16x8 { /** Creates a vector with eight identical 16-bit integer lanes. */ export function splat(x: i16): v128; - /** Extracts one 16-bit integer lane as a signed scalar. */ + /** Extracts one 16-bit integer lane as a signed scalar. idx argument needs to be compile time constant. */ export function extract_lane_s(x: v128, idx: u8): i16; - /** Extracts one 16-bit integer lane as an unsigned scalar. */ + /** Extracts one 16-bit integer lane as an unsigned scalar. idx argument needs to be compile time constant. */ export function extract_lane_u(x: v128, idx: u8): u16; /** Replaces one 16-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i16): v128; @@ -1267,7 +1267,7 @@ declare function i32x4(a: i32, b: i32, c: i32, d: i32): v128; declare namespace i32x4 { /** Creates a vector with four identical 32-bit integer lanes. */ export function splat(x: i32): v128; - /** Extracts one 32-bit integer lane as a scalar. */ + /** Extracts one 32-bit integer lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): i32; /** Replaces one 32-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i32): v128; @@ -1416,7 +1416,7 @@ declare function i64x2(a: i64, b: i64): v128; declare namespace i64x2 { /** Creates a vector with two identical 64-bit integer lanes. */ export function splat(x: i64): v128; - /** Extracts one 64-bit integer lane as a scalar. */ + /** Extracts one 64-bit integer lane as a scalar. `idx` argument need to be compile time constant */ export function extract_lane(x: v128, idx: u8): i64; /** Replaces one 64-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i64): v128; @@ -1485,7 +1485,7 @@ declare function f32x4(a: f32, b: f32, c: f32, d: f32): v128; declare namespace f32x4 { /** Creates a vector with four identical 32-bit float lanes. */ export function splat(x: f32): v128; - /** Extracts one 32-bit float lane as a scalar. */ + /** Extracts one 32-bit float lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): f32; /** Replaces one 32-bit float lane. */ export function replace_lane(x: v128, idx: u8, value: f32): v128; @@ -1575,7 +1575,7 @@ declare function f64x2(a: f64, b: f64): v128; declare namespace f64x2 { /** Creates a vector with two identical 64-bit float lanes. */ export function splat(x: f64): v128; - /** Extracts one 64-bit float lane as a scalar. */ + /** Extracts one 64-bit float lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): f64; /** Replaces one 64-bit float lane. */ export function replace_lane(x: v128, idx: u8, value: f64): v128; From dd981cfb451a713a403db325ae424b6db963f6f1 Mon Sep 17 00:00:00 2001 From: kazche Date: Wed, 11 Dec 2024 14:50:33 -0800 Subject: [PATCH 2/7] appended myself to the list of contributors --- NOTICE | 127 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 64 insertions(+), 63 deletions(-) diff --git a/NOTICE b/NOTICE index 30596e20bd..f9f49e2616 100644 --- a/NOTICE +++ b/NOTICE @@ -1,89 +1,90 @@ The following authors have all licensed their contributions to AssemblyScript under the licensing terms detailed in LICENSE: -* Daniel Wirtz -* Max Graey -* Igor Sbitnev -* Norton Wang -* Alan Pierce -* Palmer -* Linus Unnebäck -* Joshua Tenner -* Nidin Vinayakan <01@01alchemist.com> -* Aaron Turner -* Willem Wyndham -* Bowen Wang -* Emil Laine -* Stephen Paul Weber -* Jay Phelps -* jhwgh1968 -* Jeffrey Charles -* Vladimir Tikhonov -* Duncan Uszkay -* Surma -* Julien Letellier -* Guido Zuidhof -* ncave <777696+ncave@users.noreply.github.com> -* Andrew Davis -* Maël Nison -* Valeria Viana Gusmao -* Gabor Greif -* Martin Fredriksson -* forcepusher -* Piotr Oleś -* Saúl Cabrera -* Chance Snow -* Peter Salomonsen -* ookangzheng -* yjhmelody -* bnbarak -* Colin Eberhardt -* Ryan Pivovar -* Roman F. <70765447+romdotdog@users.noreply.github.com> -* Joe Pea -* Felipe Gasper -* Congcong Cai -* mooooooi -* Yasushi Ando -* Syed Jafri -* Peter Hayman -* ApsarasX -* Adrien Zinger -* Ruixiang Chen -* Daniel Salvadori -* Jairus Tanaka -* CountBleck -* Abdul Rauf -* Bach Le -* Xinquan Xu -* Matt Johnson-Pint -* Fabián Heredia Montiel -* Jonas Minnberg +- Daniel Wirtz +- Max Graey +- Igor Sbitnev +- Norton Wang +- Alan Pierce +- Palmer +- Linus Unnebäck +- Joshua Tenner +- Nidin Vinayakan <01@01alchemist.com> +- Aaron Turner +- Willem Wyndham +- Bowen Wang +- Emil Laine +- Stephen Paul Weber +- Jay Phelps +- jhwgh1968 +- Jeffrey Charles +- Vladimir Tikhonov +- Duncan Uszkay +- Surma +- Julien Letellier +- Guido Zuidhof +- ncave <777696+ncave@users.noreply.github.com> +- Andrew Davis +- Maël Nison +- Valeria Viana Gusmao +- Gabor Greif +- Martin Fredriksson +- forcepusher +- Piotr Oleś +- Saúl Cabrera +- Chance Snow +- Peter Salomonsen +- ookangzheng +- yjhmelody +- bnbarak +- Colin Eberhardt +- Ryan Pivovar +- Roman F. <70765447+romdotdog@users.noreply.github.com> +- Joe Pea +- Felipe Gasper +- Congcong Cai +- mooooooi +- Yasushi Ando +- Syed Jafri +- Peter Hayman +- ApsarasX +- Adrien Zinger +- Ruixiang Chen +- Daniel Salvadori +- Jairus Tanaka +- CountBleck +- Abdul Rauf +- Bach Le +- Xinquan Xu +- Matt Johnson-Pint +- Fabián Heredia Montiel +- Jonas Minnberg +- Kam Chehresa Portions of this software are derived from third-party works licensed under the following terms: -* TypeScript: https://github.com/Microsoft/TypeScript +- TypeScript: https://github.com/Microsoft/TypeScript Copyright (c) Microsoft Corporation Apache License, Version 2.0 (https://opensource.org/licenses/Apache-2.0) -* Binaryen: https://github.com/WebAssembly/binaryen +- Binaryen: https://github.com/WebAssembly/binaryen Copyright (c) WebAssembly Community Group participants Apache License, Version 2.0 (https://opensource.org/licenses/Apache-2.0) -* musl libc: http://www.musl-libc.org +- musl libc: http://www.musl-libc.org Copyright (c) Rich Felker, et al. The MIT License (https://opensource.org/licenses/MIT) -* V8: https://developers.google.com/v8/ +- V8: https://developers.google.com/v8/ Copyright (c) the V8 project authors The 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause) -* Arm Optimized Routines: https://github.com/ARM-software/optimized-routines +- Arm Optimized Routines: https://github.com/ARM-software/optimized-routines Copyright (c) Arm Limited The MIT License (https://opensource.org/licenses/MIT) From 62425c3683a914d06ebcf5f4a7bfde1c649b70af Mon Sep 17 00:00:00 2001 From: kazche Date: Wed, 11 Dec 2024 15:07:08 -0800 Subject: [PATCH 3/7] Revert "fix to enhance in-line comment for extract_lane functions to include idx argument needs to be compile time constant - issue #2877" This reverts commit 509ffc4ea4a1bcf3d9bdaf1558144304f9d41a95. --- std/assembly/index.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index 6c87790e27..4dbee416a8 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -791,7 +791,7 @@ declare function v128(a: i8, b: i8, c: i8, d: i8, e: i8, f: i8, g: i8, h: i8, i: declare namespace v128 { /** Creates a vector with identical lanes. */ export function splat(x: T): v128; - /** Extracts one lane as a scalar. idx argument needs to be compile time constant. */ + /** Extracts one lane as a scalar. */ export function extract_lane(x: v128, idx: u8): T; /** Replaces one lane. */ export function replace_lane(x: v128, idx: u8, value: T): v128; @@ -1051,9 +1051,9 @@ declare function i8x16(a: i8, b: i8, c: i8, d: i8, e: i8, f: i8, g: i8, h: i8, i declare namespace i8x16 { /** Creates a vector with sixteen identical 8-bit integer lanes. */ export function splat(x: i8): v128; - /** Extracts one 8-bit integer lane as a signed scalar. idx argument needs to be compile time constant. */ + /** Extracts one 8-bit integer lane as a signed scalar. */ export function extract_lane_s(x: v128, idx: u8): i8; - /** Extracts one 8-bit integer lane as an unsigned scalar. idx argument needs to be compile time constant. */ + /** Extracts one 8-bit integer lane as an unsigned scalar. */ export function extract_lane_u(x: v128, idx: u8): u8; /** Replaces one 8-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i8): v128; @@ -1146,9 +1146,9 @@ declare function i16x8(a: i16, b: i16, c: i16, d: i16, e: i16, f: i16, g: i16, h declare namespace i16x8 { /** Creates a vector with eight identical 16-bit integer lanes. */ export function splat(x: i16): v128; - /** Extracts one 16-bit integer lane as a signed scalar. idx argument needs to be compile time constant. */ + /** Extracts one 16-bit integer lane as a signed scalar. */ export function extract_lane_s(x: v128, idx: u8): i16; - /** Extracts one 16-bit integer lane as an unsigned scalar. idx argument needs to be compile time constant. */ + /** Extracts one 16-bit integer lane as an unsigned scalar. */ export function extract_lane_u(x: v128, idx: u8): u16; /** Replaces one 16-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i16): v128; @@ -1267,7 +1267,7 @@ declare function i32x4(a: i32, b: i32, c: i32, d: i32): v128; declare namespace i32x4 { /** Creates a vector with four identical 32-bit integer lanes. */ export function splat(x: i32): v128; - /** Extracts one 32-bit integer lane as a scalar. idx argument needs to be compile time constant. */ + /** Extracts one 32-bit integer lane as a scalar. */ export function extract_lane(x: v128, idx: u8): i32; /** Replaces one 32-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i32): v128; @@ -1416,7 +1416,7 @@ declare function i64x2(a: i64, b: i64): v128; declare namespace i64x2 { /** Creates a vector with two identical 64-bit integer lanes. */ export function splat(x: i64): v128; - /** Extracts one 64-bit integer lane as a scalar. `idx` argument need to be compile time constant */ + /** Extracts one 64-bit integer lane as a scalar. */ export function extract_lane(x: v128, idx: u8): i64; /** Replaces one 64-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i64): v128; @@ -1485,7 +1485,7 @@ declare function f32x4(a: f32, b: f32, c: f32, d: f32): v128; declare namespace f32x4 { /** Creates a vector with four identical 32-bit float lanes. */ export function splat(x: f32): v128; - /** Extracts one 32-bit float lane as a scalar. idx argument needs to be compile time constant. */ + /** Extracts one 32-bit float lane as a scalar. */ export function extract_lane(x: v128, idx: u8): f32; /** Replaces one 32-bit float lane. */ export function replace_lane(x: v128, idx: u8, value: f32): v128; @@ -1575,7 +1575,7 @@ declare function f64x2(a: f64, b: f64): v128; declare namespace f64x2 { /** Creates a vector with two identical 64-bit float lanes. */ export function splat(x: f64): v128; - /** Extracts one 64-bit float lane as a scalar. idx argument needs to be compile time constant. */ + /** Extracts one 64-bit float lane as a scalar. */ export function extract_lane(x: v128, idx: u8): f64; /** Replaces one 64-bit float lane. */ export function replace_lane(x: v128, idx: u8, value: f64): v128; From 1cc7be85b78483345a8a5ae86a9fa46cee260e9f Mon Sep 17 00:00:00 2001 From: kazche Date: Wed, 11 Dec 2024 15:12:24 -0800 Subject: [PATCH 4/7] Revert "appended myself to the list of contributors" This reverts commit dd981cfb451a713a403db325ae424b6db963f6f1. --- NOTICE | 127 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 63 insertions(+), 64 deletions(-) diff --git a/NOTICE b/NOTICE index f9f49e2616..30596e20bd 100644 --- a/NOTICE +++ b/NOTICE @@ -1,90 +1,89 @@ The following authors have all licensed their contributions to AssemblyScript under the licensing terms detailed in LICENSE: -- Daniel Wirtz -- Max Graey -- Igor Sbitnev -- Norton Wang -- Alan Pierce -- Palmer -- Linus Unnebäck -- Joshua Tenner -- Nidin Vinayakan <01@01alchemist.com> -- Aaron Turner -- Willem Wyndham -- Bowen Wang -- Emil Laine -- Stephen Paul Weber -- Jay Phelps -- jhwgh1968 -- Jeffrey Charles -- Vladimir Tikhonov -- Duncan Uszkay -- Surma -- Julien Letellier -- Guido Zuidhof -- ncave <777696+ncave@users.noreply.github.com> -- Andrew Davis -- Maël Nison -- Valeria Viana Gusmao -- Gabor Greif -- Martin Fredriksson -- forcepusher -- Piotr Oleś -- Saúl Cabrera -- Chance Snow -- Peter Salomonsen -- ookangzheng -- yjhmelody -- bnbarak -- Colin Eberhardt -- Ryan Pivovar -- Roman F. <70765447+romdotdog@users.noreply.github.com> -- Joe Pea -- Felipe Gasper -- Congcong Cai -- mooooooi -- Yasushi Ando -- Syed Jafri -- Peter Hayman -- ApsarasX -- Adrien Zinger -- Ruixiang Chen -- Daniel Salvadori -- Jairus Tanaka -- CountBleck -- Abdul Rauf -- Bach Le -- Xinquan Xu -- Matt Johnson-Pint -- Fabián Heredia Montiel -- Jonas Minnberg -- Kam Chehresa +* Daniel Wirtz +* Max Graey +* Igor Sbitnev +* Norton Wang +* Alan Pierce +* Palmer +* Linus Unnebäck +* Joshua Tenner +* Nidin Vinayakan <01@01alchemist.com> +* Aaron Turner +* Willem Wyndham +* Bowen Wang +* Emil Laine +* Stephen Paul Weber +* Jay Phelps +* jhwgh1968 +* Jeffrey Charles +* Vladimir Tikhonov +* Duncan Uszkay +* Surma +* Julien Letellier +* Guido Zuidhof +* ncave <777696+ncave@users.noreply.github.com> +* Andrew Davis +* Maël Nison +* Valeria Viana Gusmao +* Gabor Greif +* Martin Fredriksson +* forcepusher +* Piotr Oleś +* Saúl Cabrera +* Chance Snow +* Peter Salomonsen +* ookangzheng +* yjhmelody +* bnbarak +* Colin Eberhardt +* Ryan Pivovar +* Roman F. <70765447+romdotdog@users.noreply.github.com> +* Joe Pea +* Felipe Gasper +* Congcong Cai +* mooooooi +* Yasushi Ando +* Syed Jafri +* Peter Hayman +* ApsarasX +* Adrien Zinger +* Ruixiang Chen +* Daniel Salvadori +* Jairus Tanaka +* CountBleck +* Abdul Rauf +* Bach Le +* Xinquan Xu +* Matt Johnson-Pint +* Fabián Heredia Montiel +* Jonas Minnberg Portions of this software are derived from third-party works licensed under the following terms: -- TypeScript: https://github.com/Microsoft/TypeScript +* TypeScript: https://github.com/Microsoft/TypeScript Copyright (c) Microsoft Corporation Apache License, Version 2.0 (https://opensource.org/licenses/Apache-2.0) -- Binaryen: https://github.com/WebAssembly/binaryen +* Binaryen: https://github.com/WebAssembly/binaryen Copyright (c) WebAssembly Community Group participants Apache License, Version 2.0 (https://opensource.org/licenses/Apache-2.0) -- musl libc: http://www.musl-libc.org +* musl libc: http://www.musl-libc.org Copyright (c) Rich Felker, et al. The MIT License (https://opensource.org/licenses/MIT) -- V8: https://developers.google.com/v8/ +* V8: https://developers.google.com/v8/ Copyright (c) the V8 project authors The 3-Clause BSD License (https://opensource.org/licenses/BSD-3-Clause) -- Arm Optimized Routines: https://github.com/ARM-software/optimized-routines +* Arm Optimized Routines: https://github.com/ARM-software/optimized-routines Copyright (c) Arm Limited The MIT License (https://opensource.org/licenses/MIT) From 5604d81202d29da7e0a6e1b21a50c826ce6df63c Mon Sep 17 00:00:00 2001 From: kazche Date: Wed, 11 Dec 2024 15:20:59 -0800 Subject: [PATCH 5/7] Revert "Revert "fix to enhance in-line comment for extract_lane functions to include idx argument needs to be compile time constant - issue #2877"" This reverts commit 62425c3683a914d06ebcf5f4a7bfde1c649b70af. --- std/assembly/index.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index 4dbee416a8..6c87790e27 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -791,7 +791,7 @@ declare function v128(a: i8, b: i8, c: i8, d: i8, e: i8, f: i8, g: i8, h: i8, i: declare namespace v128 { /** Creates a vector with identical lanes. */ export function splat(x: T): v128; - /** Extracts one lane as a scalar. */ + /** Extracts one lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): T; /** Replaces one lane. */ export function replace_lane(x: v128, idx: u8, value: T): v128; @@ -1051,9 +1051,9 @@ declare function i8x16(a: i8, b: i8, c: i8, d: i8, e: i8, f: i8, g: i8, h: i8, i declare namespace i8x16 { /** Creates a vector with sixteen identical 8-bit integer lanes. */ export function splat(x: i8): v128; - /** Extracts one 8-bit integer lane as a signed scalar. */ + /** Extracts one 8-bit integer lane as a signed scalar. idx argument needs to be compile time constant. */ export function extract_lane_s(x: v128, idx: u8): i8; - /** Extracts one 8-bit integer lane as an unsigned scalar. */ + /** Extracts one 8-bit integer lane as an unsigned scalar. idx argument needs to be compile time constant. */ export function extract_lane_u(x: v128, idx: u8): u8; /** Replaces one 8-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i8): v128; @@ -1146,9 +1146,9 @@ declare function i16x8(a: i16, b: i16, c: i16, d: i16, e: i16, f: i16, g: i16, h declare namespace i16x8 { /** Creates a vector with eight identical 16-bit integer lanes. */ export function splat(x: i16): v128; - /** Extracts one 16-bit integer lane as a signed scalar. */ + /** Extracts one 16-bit integer lane as a signed scalar. idx argument needs to be compile time constant. */ export function extract_lane_s(x: v128, idx: u8): i16; - /** Extracts one 16-bit integer lane as an unsigned scalar. */ + /** Extracts one 16-bit integer lane as an unsigned scalar. idx argument needs to be compile time constant. */ export function extract_lane_u(x: v128, idx: u8): u16; /** Replaces one 16-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i16): v128; @@ -1267,7 +1267,7 @@ declare function i32x4(a: i32, b: i32, c: i32, d: i32): v128; declare namespace i32x4 { /** Creates a vector with four identical 32-bit integer lanes. */ export function splat(x: i32): v128; - /** Extracts one 32-bit integer lane as a scalar. */ + /** Extracts one 32-bit integer lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): i32; /** Replaces one 32-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i32): v128; @@ -1416,7 +1416,7 @@ declare function i64x2(a: i64, b: i64): v128; declare namespace i64x2 { /** Creates a vector with two identical 64-bit integer lanes. */ export function splat(x: i64): v128; - /** Extracts one 64-bit integer lane as a scalar. */ + /** Extracts one 64-bit integer lane as a scalar. `idx` argument need to be compile time constant */ export function extract_lane(x: v128, idx: u8): i64; /** Replaces one 64-bit integer lane. */ export function replace_lane(x: v128, idx: u8, value: i64): v128; @@ -1485,7 +1485,7 @@ declare function f32x4(a: f32, b: f32, c: f32, d: f32): v128; declare namespace f32x4 { /** Creates a vector with four identical 32-bit float lanes. */ export function splat(x: f32): v128; - /** Extracts one 32-bit float lane as a scalar. */ + /** Extracts one 32-bit float lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): f32; /** Replaces one 32-bit float lane. */ export function replace_lane(x: v128, idx: u8, value: f32): v128; @@ -1575,7 +1575,7 @@ declare function f64x2(a: f64, b: f64): v128; declare namespace f64x2 { /** Creates a vector with two identical 64-bit float lanes. */ export function splat(x: f64): v128; - /** Extracts one 64-bit float lane as a scalar. */ + /** Extracts one 64-bit float lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): f64; /** Replaces one 64-bit float lane. */ export function replace_lane(x: v128, idx: u8, value: f64): v128; From db38a871f2f8b3c909785ca92bce9c09a583b3e6 Mon Sep 17 00:00:00 2001 From: kazche Date: Wed, 11 Dec 2024 15:30:07 -0800 Subject: [PATCH 6/7] applied inline comment for replace_lane functions: idx argument needs to be compile time constant. - #2877 --- std/assembly/index.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/std/assembly/index.d.ts b/std/assembly/index.d.ts index 6c87790e27..eb8a177b31 100644 --- a/std/assembly/index.d.ts +++ b/std/assembly/index.d.ts @@ -793,7 +793,7 @@ declare namespace v128 { export function splat(x: T): v128; /** Extracts one lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): T; - /** Replaces one lane. */ + /** Replaces one lane. idx argument needs to be compile time constant.*/ export function replace_lane(x: v128, idx: u8, value: T): v128; /** Selects lanes from either vector according to the specified lane indexes. */ export function shuffle(a: v128, b: v128, ...lanes: u8[]): v128; @@ -1055,7 +1055,7 @@ declare namespace i8x16 { export function extract_lane_s(x: v128, idx: u8): i8; /** Extracts one 8-bit integer lane as an unsigned scalar. idx argument needs to be compile time constant. */ export function extract_lane_u(x: v128, idx: u8): u8; - /** Replaces one 8-bit integer lane. */ + /** Replaces one 8-bit integer lane. idx argument needs to be compile time constant. */ export function replace_lane(x: v128, idx: u8, value: i8): v128; /** Adds each 8-bit integer lane. */ export function add(a: v128, b: v128): v128; @@ -1150,7 +1150,7 @@ declare namespace i16x8 { export function extract_lane_s(x: v128, idx: u8): i16; /** Extracts one 16-bit integer lane as an unsigned scalar. idx argument needs to be compile time constant. */ export function extract_lane_u(x: v128, idx: u8): u16; - /** Replaces one 16-bit integer lane. */ + /** Replaces one 16-bit integer lane. idx argument needs to be compile time constant. */ export function replace_lane(x: v128, idx: u8, value: i16): v128; /** Adds each 16-bit integer lane. */ export function add(a: v128, b: v128): v128; @@ -1269,7 +1269,7 @@ declare namespace i32x4 { export function splat(x: i32): v128; /** Extracts one 32-bit integer lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): i32; - /** Replaces one 32-bit integer lane. */ + /** Replaces one 32-bit integer lane. idx argument needs to be compile time constant. */ export function replace_lane(x: v128, idx: u8, value: i32): v128; /** Adds each 32-bit integer lane. */ export function add(a: v128, b: v128): v128; @@ -1418,7 +1418,7 @@ declare namespace i64x2 { export function splat(x: i64): v128; /** Extracts one 64-bit integer lane as a scalar. `idx` argument need to be compile time constant */ export function extract_lane(x: v128, idx: u8): i64; - /** Replaces one 64-bit integer lane. */ + /** Replaces one 64-bit integer lane. idx argument needs to be compile time constant. */ export function replace_lane(x: v128, idx: u8, value: i64): v128; /** Adds each 64-bit integer lane. */ export function add(a: v128, b: v128): v128; @@ -1487,7 +1487,7 @@ declare namespace f32x4 { export function splat(x: f32): v128; /** Extracts one 32-bit float lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): f32; - /** Replaces one 32-bit float lane. */ + /** Replaces one 32-bit float lane. idx argument needs to be compile time constant. */ export function replace_lane(x: v128, idx: u8, value: f32): v128; /** Adds each 32-bit float lane. */ export function add(a: v128, b: v128): v128; @@ -1577,7 +1577,7 @@ declare namespace f64x2 { export function splat(x: f64): v128; /** Extracts one 64-bit float lane as a scalar. idx argument needs to be compile time constant. */ export function extract_lane(x: v128, idx: u8): f64; - /** Replaces one 64-bit float lane. */ + /** Replaces one 64-bit float lane. idx argument needs to be compile time constant. */ export function replace_lane(x: v128, idx: u8, value: f64): v128; /** Adds each 64-bit float lane. */ export function add(a: v128, b: v128): v128; From c93e39438a4a5a116d81775d074e5829c62a4f14 Mon Sep 17 00:00:00 2001 From: kazche Date: Wed, 11 Dec 2024 16:56:35 -0800 Subject: [PATCH 7/7] added my info to NOTICE --- NOTICE | 1 + 1 file changed, 1 insertion(+) diff --git a/NOTICE b/NOTICE index 30596e20bd..e7a2601827 100644 --- a/NOTICE +++ b/NOTICE @@ -59,6 +59,7 @@ under the licensing terms detailed in LICENSE: * Matt Johnson-Pint * Fabián Heredia Montiel * Jonas Minnberg +* Kam Chehresa Portions of this software are derived from third-party works licensed under the following terms: