Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Include floating-point rounding instructions #7

Closed
@stoklund

Description

@stoklund

The proposal in #1 doesn't include vectorized versions of the floating-point round-to-integer instructions:

  • f32x4.ceil(x: v128) -> v128
  • f32x4.floor(x: v128) -> v128
  • f32x4.trunc(x: v128) -> v128
  • f32x4.nearest(x: v128) -> v128
  • f64x2.ceil(x: v128) -> v128
  • f64x2.floor(x: v128) -> v128
  • f64x2.trunc(x: v128) -> v128
  • f64x2.nearest(x: v128) -> v128

It seems these instructions would be just as useful in vectorized floating-point code as they are in scalar code.

Are these instructions widely available in SIMD instruction sets we care about?

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