Skip to content

chore: enhance comment for extract_lane functions to include "idx" argument needs to be compile time constant #2890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 64 additions & 63 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,89 +1,90 @@
The following authors have all licensed their contributions to AssemblyScript
under the licensing terms detailed in LICENSE:

* Daniel Wirtz <[email protected]>
* Max Graey <[email protected]>
* Igor Sbitnev <[email protected]>
* Norton Wang <[email protected]>
* Alan Pierce <[email protected]>
* Palmer <[email protected]>
* Linus Unnebäck <[email protected]>
* Joshua Tenner <[email protected]>
* Nidin Vinayakan <[email protected]>
* Aaron Turner <[email protected]>
* Willem Wyndham <[email protected]>
* Bowen Wang <[email protected]>
* Emil Laine <[email protected]>
* Stephen Paul Weber <[email protected]>
* Jay Phelps <[email protected]>
* jhwgh1968 <[email protected]>
* Jeffrey Charles <[email protected]>
* Vladimir Tikhonov <[email protected]>
* Duncan Uszkay <[email protected]>
* Surma <[email protected]>
* Julien Letellier <[email protected]>
* Guido Zuidhof <[email protected]>
* ncave <[email protected]>
* Andrew Davis <[email protected]>
* Maël Nison <[email protected]>
* Valeria Viana Gusmao <[email protected]>
* Gabor Greif <[email protected]>
* Martin Fredriksson <[email protected]>
* forcepusher <[email protected]>
* Piotr Oleś <[email protected]>
* Saúl Cabrera <[email protected]>
* Chance Snow <[email protected]>
* Peter Salomonsen <[email protected]>
* ookangzheng <[email protected]>
* yjhmelody <[email protected]>
* bnbarak <[email protected]>
* Colin Eberhardt <[email protected]>
* Ryan Pivovar <[email protected]>
* Roman F. <[email protected]>
* Joe Pea <[email protected]>
* Felipe Gasper <[email protected]>
* Congcong Cai <[email protected]>
* mooooooi <[email protected]>
* Yasushi Ando <[email protected]>
* Syed Jafri <[email protected]>
* Peter Hayman <[email protected]>
* ApsarasX <[email protected]>
* Adrien Zinger <[email protected]>
* Ruixiang Chen <[email protected]>
* Daniel Salvadori <[email protected]>
* Jairus Tanaka <[email protected]>
* CountBleck <[email protected]>
* Abdul Rauf <[email protected]>
* Bach Le <[email protected]>
* Xinquan Xu <[email protected]>
* Matt Johnson-Pint <[email protected]>
* Fabián Heredia Montiel <[email protected]>
* Jonas Minnberg <[email protected]>
- Daniel Wirtz <[email protected]>
- Max Graey <[email protected]>
- Igor Sbitnev <[email protected]>
- Norton Wang <[email protected]>
- Alan Pierce <[email protected]>
- Palmer <[email protected]>
- Linus Unnebäck <[email protected]>
- Joshua Tenner <[email protected]>
- Nidin Vinayakan <[email protected]>
- Aaron Turner <[email protected]>
- Willem Wyndham <[email protected]>
- Bowen Wang <[email protected]>
- Emil Laine <[email protected]>
- Stephen Paul Weber <[email protected]>
- Jay Phelps <[email protected]>
- jhwgh1968 <[email protected]>
- Jeffrey Charles <[email protected]>
- Vladimir Tikhonov <[email protected]>
- Duncan Uszkay <[email protected]>
- Surma <[email protected]>
- Julien Letellier <[email protected]>
- Guido Zuidhof <[email protected]>
- ncave <[email protected]>
- Andrew Davis <[email protected]>
- Maël Nison <[email protected]>
- Valeria Viana Gusmao <[email protected]>
- Gabor Greif <[email protected]>
- Martin Fredriksson <[email protected]>
- forcepusher <[email protected]>
- Piotr Oleś <[email protected]>
- Saúl Cabrera <[email protected]>
- Chance Snow <[email protected]>
- Peter Salomonsen <[email protected]>
- ookangzheng <[email protected]>
- yjhmelody <[email protected]>
- bnbarak <[email protected]>
- Colin Eberhardt <[email protected]>
- Ryan Pivovar <[email protected]>
- Roman F. <[email protected]>
- Joe Pea <[email protected]>
- Felipe Gasper <[email protected]>
- Congcong Cai <[email protected]>
- mooooooi <[email protected]>
- Yasushi Ando <[email protected]>
- Syed Jafri <[email protected]>
- Peter Hayman <[email protected]>
- ApsarasX <[email protected]>
- Adrien Zinger <[email protected]>
- Ruixiang Chen <[email protected]>
- Daniel Salvadori <[email protected]>
- Jairus Tanaka <[email protected]>
- CountBleck <[email protected]>
- Abdul Rauf <[email protected]>
- Bach Le <[email protected]>
- Xinquan Xu <[email protected]>
- Matt Johnson-Pint <[email protected]>
- Fabián Heredia Montiel <[email protected]>
- Jonas Minnberg <[email protected]>
- Kam Chehresa <[email protected]>

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)
18 changes: 9 additions & 9 deletions std/assembly/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(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<T>(x: v128, idx: u8): T;
/** Replaces one lane. */
export function replace_lane<T>(x: v128, idx: u8, value: T): v128;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down