MCPcopy Create free account
hub / github.com/EricLengyel/Terathon-Math-Library / VecFnsgn

Function VecFnsgn

TSSimd.h:1725–1730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1723 }
1724
1725 inline vec_float VecFnsgn(const vec_float& v)
1726 {
1727 vec_float result = VecLoadVectorConstant<0x3F800000>();
1728 result = result | VecAndc(VecFloatGetMinusZero(), v);
1729 return (VecAndc(result, VecMaskCmpeq(v, VecFloatGetZero())));
1730 }
1731
1732 inline vec_float VecNonzeroFsgn(const vec_float& v)
1733 {

Callers 1

FnsgnFunction · 0.85

Calls 4

VecAndcFunction · 0.85
VecFloatGetMinusZeroFunction · 0.85
VecMaskCmpeqFunction · 0.85
VecFloatGetZeroFunction · 0.85

Tested by

no test coverage detected