Page 1 of 1

Singularities handling

Posted: 2018-04-13, 13:53:55
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.