-
-
Notifications
You must be signed in to change notification settings - Fork 672
Closed
Description
There are not enough SIMD operations in AssemblyScript and the corresponding data types. I propose to add either Intrinsics (and adding a standard library with classes), or immediately make data types with SIMD operations.
// 'simd' is wrapper class with data and operator overloads, also can be casted
// 'i32x4h' is static class with type info and typed operations (if float, so float ops)
export function simd_add(x: simd<i32x4h>, y: simd<i32x4h>): simd<i32x4h> {
return x + y;
}