-
Notifications
You must be signed in to change notification settings - Fork 251
Open
Labels
@walbourn
Description
In the original Xbox 360 implementation of xboxmath, the following functions used tricks and helper intrinsics like vec_ctf to generate constants:
XMVectorSplatOneXMVectorSplatInfinityXMVectorSplatQNaNXMVectorSplatEpsilonXMVectorSplatSignMask
For the SSE implementation, they are implemented as just loads from vectorized data-segment constants. It would be nice to find a way to generate the values instead to minimize data read and catch impacts.
For ARM-NEON, most of these use
vdupq_n_f32orvdupq_n_u32which should be reasonably efficient already.