mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
arm, neon: util macros
This commit is contained in:
@@ -29,6 +29,15 @@
|
|||||||
vreinterpretq_f32_s32(veorq_s32(vreinterpretq_s32_f32(a), \
|
vreinterpretq_f32_s32(veorq_s32(vreinterpretq_s32_f32(a), \
|
||||||
vreinterpretq_s32_f32(b)))
|
vreinterpretq_s32_f32(b)))
|
||||||
|
|
||||||
|
#define glmm_swplane(v) vextq_f32(v, v, 2)
|
||||||
|
#define glmm_low(x) vget_low_f32(x)
|
||||||
|
#define glmm_high(x) vget_high_f32(x)
|
||||||
|
|
||||||
|
#define glmm_combine_ll(x, y) vcombine_f32(vget_low_f32(x), vget_low_f32(y))
|
||||||
|
#define glmm_combine_hl(x, y) vcombine_f32(vget_high_f32(x), vget_low_f32(y))
|
||||||
|
#define glmm_combine_lh(x, y) vcombine_f32(vget_low_f32(x), vget_high_f32(y))
|
||||||
|
#define glmm_combine_hh(x, y) vcombine_f32(vget_high_f32(x), vget_high_f32(y))
|
||||||
|
|
||||||
static inline
|
static inline
|
||||||
float32x4_t
|
float32x4_t
|
||||||
glmm_abs(float32x4_t v) {
|
glmm_abs(float32x4_t v) {
|
||||||
|
|||||||
Reference in New Issue
Block a user