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

Function VecFsgn

TSSimd.h:1718–1723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1716 }
1717
1718 inline vec_float VecFsgn(const vec_float& v)
1719 {
1720 vec_float result = VecLoadVectorConstant<0x3F800000>();
1721 result = result | (VecFloatGetMinusZero() & v);
1722 return (VecAndc(result, VecMaskCmpeq(v, VecFloatGetZero())));
1723 }
1724
1725 inline vec_float VecFnsgn(const vec_float& v)
1726 {

Callers 1

FsgnFunction · 0.85

Calls 4

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

Tested by

no test coverage detected