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

Function VecTruncateConvert

TSSimd.h:593–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591 }
592
593 inline int32 VecTruncateConvert(const vec_float& v)
594 {
595 #if defined(TERATHON_SSE)
596
597 return (_mm_cvtt_ss2si(v));
598
599 #elif defined(TERATHON_NEON)
600
601 return (vgetq_lane_s32(vcvtq_s32_f32(v), 0));
602
603 #endif
604 }
605
606 inline vec_float VecNegate(const vec_float& v)
607 {

Callers 4

SinMethod · 0.85
CosMethod · 0.85
TanMethod · 0.85
CosSinMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected