Commit e4473e22 authored by James Willis's avatar James Willis
Browse files

Protect macro with braces.

parent 4a3e7f3b
......@@ -84,10 +84,10 @@
#define vec_and(a, b) _mm512_and_ps(a, b)
#define vec_mask_and(a, b) _mm512_kand(a, b)
#define vec_and_mask(a, mask) _mm512_maskz_mov_ps(mask, a)
#define vec_init_mask_true(mask) mask = 0xFFFF
#define vec_zero_mask(mask) mask = 0
#define vec_create_mask(mask, cond) mask = cond
#define vec_pad_mask(mask, pad) mask = mask >> (pad)
#define vec_init_mask_true(mask) ({mask = 0xFFFF})
#define vec_zero_mask(mask) ({mask = 0})
#define vec_create_mask(mask, cond) ({mask = cond})
#define vec_pad_mask(mask, pad) ({mask = mask >> (pad)})
#define vec_blend(mask, a, b) _mm512_mask_blend_ps(mask, a, b)
#define vec_todbl_lo(a) _mm512_cvtps_pd(_mm512_extract128_ps(a, 0))
#define vec_todbl_hi(a) _mm512_cvtps_pd(_mm512_extract128_ps(a, 1))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment