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

Function VecNegate

TSSimd.h:606–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604 }
605
606 inline vec_float VecNegate(const vec_float& v)
607 {
608 #if defined(TERATHON_SSE)
609
610 return (_mm_sub_ps(_mm_setzero_ps(), v));
611
612 #elif defined(TERATHON_NEON)
613
614 return (vnegq_f32(v));
615
616 #endif
617 }
618
619 inline vec_float operator -(const vec_float& v)
620 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected