Skip to content

SIMD operations and types? #468

@L2NE-dev

Description

@L2NE-dev

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;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions