Singularities handling

discussion of forwardcom instruction set and corresponding hardware and software

Moderator: agner

Post Reply
csdt
Posts: 6
Joined: 2018-04-13, 9:39:49

Singularities handling

Post by csdt »

I was looking in the intel documentation and I found the function _mm512_fixupimm_ps: https://software.intel.com/sites/landin ... text=fixup

Basically, this function allows to map some value type to other value type.
The primary use is to handle mathematical singularities.
For example, if I implement a reciprocal square root using fast instructions, it will not handle correctly the inputs 0, infinity and negatives.
But I can then use this function to fix this after the computation, and have correct results for those corner cases.

I wanted to know if it is possible to have something like this in Forwardcom? The cases handled by such an instruction might be different from Intel's.
Post Reply