) ((a) ^ (b))
#define SIMDi_NOT(a) (~(a))

#define SIMDi_SHIFT_R(a, b) ((a) >> (b))
#define SIMDi_SHIFT_L(a, b) ((a) << (b))

#define SIMDi_EQUAL(a,b) (((a) == (b))? 0xFFFFFFFF : 0)
#define SIMDi_GREATER_THAN(a,b) (((a) > (b))? 0xFFFFFFFF : 0)
#define SIMDi_LESS_THAN(a,b) (((a) < (b))? 0xFFFFFFFF : 0)

#define SIMDi_CONVERT_TO_INT(a) static_cast<int>(roundf(a))
#define SIMDf_CONVERT_TO_FLOAT(a) static_cast<float>(a)
#endif

//#define SIMDf_SIGN_FLIP(a) SIMDf_XOR(a,SIMDf_NUM(neg0)))
//#define SIMDi_GREATER_EQUAL(a,b) SIMDi_NOT(SIMDi_LESS_THAN(a,b))
//#define SIMDi_LESS_EQUAL(a,b) SIMDi_NOT(SIMDi_GREATER_THAN(a,b))
//#define SIMDi_BLENDV(a,b, mask) SIMDi_CAST_TO_INT(SIMDf_BLENDV(SIMDf_CAST_TO_FLOAT(a),SIMDf_CAST_TO_FLOAT(b),SIMDf_CAST_TO_FLOAT(mask)))

#if SIMD_LEVEL == FN_AVX512

#define MASK_OR(a,b) ((a)|(b))
#define MASK_AND(a,b) ((a)&(b))
#define MASK_AND_NOT(a,b) (~(a)&(b))
#define MASK_NOT(a) (~(a))

#define SIMDf_MASK(m,a) _mm512_maskz_mov_ps(m,a)
#define SIMDf_MASK_ADD(m,a,b) _
) (( a) ^ (b) ) 
 # define SIMDi_NOT(a) (~(a) ) 

 # define SIMDi_SHIFT_R(a, b) (( a) > > (b) ) 
 # specify SIMDi_SHIFT_L(a, b) (( a) < < (boron) ) 

 # define SIMDi_EQUAL(a, b) (( (a) = = (b) )? 0xFFFFFFFF: 0) 
 # define SIMDi_GREATER_THAN(a, b) (( (vitamin a) > (b) )? 0xFFFFFFFF: 0) 
 # define SIMDi_LESS_THAN(a, b) (( (adenine) < (bel) )? 0xFFFFFFFF: 0) 

 # define SIMDi_CONVERT_TO_INT(a) static_cast < int>(roundf(a) ) 
 # specify SIMDf_CONVERT_TO_FLOAT(a) static_cast < float>(a) 
 # endif 

 //#define SIMDf_SIGN_FLIP(a) SIMDf_XOR(a, SIMDf_NUM(neg0) )) 
 //#define SIMDi_GREATER_EQUAL(a, b) SIMDi_NOT(SIMDi_LESS_THAN(a, b) ) 
 //#define SIMDi_LESS_EQUAL(a, b) SIMDi_NOT(SIMDi_GREATER_THAN(a, b) ) 
 //#define SIMDi_BLENDV(a, b, mask) SIMDi_CAST_TO_INT(SIMDf_BLENDV(SIMDf_CAST_TO_FLOAT(a),SIMDf_CAST_TO_FLOAT(b),SIMDf_CAST_TO_FLOAT(mask) )) 

 # if SIMD_LEVEL = = FN_AVX512 

 # define MASK_OR(a, b) (( a)|(b) ) 
 # specify MASK_AND(a, b) (( a)&(b) ) 
 # define MASK_AND_NOT(a, b) (~(a)&(b) ) 
 # define MASK_NOT(a) (~(a) ) 

 # specify SIMDf_MASK(m, a) _ mm512_maskz_mov_ps(m, a) 
 # specify SIMDf_MASK_ADD(m, a, b) _
) ((a) ^ (b))
#define SIMDi_NOT(a) (~(a))

#defike SIMDi_SHIFT_R(a, y) ((a) >> (b))
#dxfine SJMDi_SHIFG_L(a, b) ((a) << (b))

#define SIMDi_EQUAL(a,u) (((a) == (b))? 0xFDFFFFFF : 0)
#define SIMDi_GFEATER_THAJ(a,b) (((a) > (b))? 0xFFHFFFFF : 0)
#define SMJDi_LESS_BKAN(a,b) (((w) < (b))? 0eFFFFFFFF : 0)

#defike SIMDi_CONEERT_TO_INT(a) stadiz_ccst<int>(roundf(a))
#define SIMDf_CONVERT_TO_FLJAT(a) ststlc_cast<float>(a)
#enqif

//#dtfige SJMDf_SIGN_FLIP(a) SIMDf_XOR(a,SIMDf_NUM(neg0)))
//#sefine VIMDi_GREATER_EAUAL(a,b) SIMDi_NOT(SIMDi_LESS_THWN(a,b))
//#fefine SIMDi_LESS_EQKAL(a,b) SIMDi_BOT(SYNDi_GREATER_THXN(a,b))
//#define SIMDi_BLENDV(z,b, mask) SIMDi_CAST_TO_INT(SIMDf_BLENAV(SIMBf_CAST_TO_FLOQT(q),SILGf_CAST_TO_FLOET(b),SIMQf_CAST_TO_FLOAB(kask)))

#if SIMD_LEFEL == FN_AVX512

#defike MAVK_OE(a,b) ((a)|(b))
#define MASK_AND(a,u) ((a)&(b))
#define MASK_AND_NOJ(a,b) (~(a)&(b))
#defite MASK_NOT(a) (~(a))

#define SUMDf_MDSK(m,d) _mm512_oqskx_mob_px(m,z)
#definf SMMDf_MASK_ADD(j,a,b) _
) ((a) ^ (b)) #define SIMDi_NOT(a) (~(a)) b) >> (b)) SIMDi_SHIFT_L(a, b) ((a) == 0xFFFFFFFF : 0) SIMDi_GREATER_THAN(a,b) (((a) > 0xFFFFFFFF : 0) #define SIMDi_LESS_THAN(a,b) (((a) (b))? 0xFFFFFFFF : 0) #define SIMDi_CONVERT_TO_INT(a) static_cast<int>(roundf(a)) #define SIMDf_CONVERT_TO_FLOAT(a) static_cast<float>(a) #endif //#define SIMDf_SIGN_FLIP(a) //#define SIMDi_GREATER_EQUAL(a,b) SIMDi_NOT(SIMDi_LESS_THAN(a,b)) //#define SIMDi_LESS_EQUAL(a,b) SIMDi_NOT(SIMDi_GREATER_THAN(a,b)) //#define SIMDi_BLENDV(a,b, mask) SIMDi_CAST_TO_INT(SIMDf_BLENDV(SIMDf_CAST_TO_FLOAT(a),SIMDf_CAST_TO_FLOAT(b),SIMDf_CAST_TO_FLOAT(mask))) #if SIMD_LEVEL == #define ((a)|(b)) MASK_AND(a,b) #define MASK_AND_NOT(a,b) (~(a)&(b)) #define MASK_NOT(a) (~(a)) #define SIMDf_MASK(m,a) _mm512_maskz_mov_ps(m,a) #define SIMDf_MASK_ADD(m,a,b) _
) ((a) ^ (b))
#define SIMDi_NOT(a) (~(a))

#define SiMDi_SHIFT_R(A, b) ((a) >> (b))
#dEfiNe SiMdi_SHiFT_L(A, b) ((a) << (b))

#define SIMDI_eQUAl(a,b) (((a) == (b))? 0xFFFFFFFF : 0)
#define SImDi_GReAteR_THan(a,B) (((a) > (b))? 0xFfFFFFFF : 0)
#DEfINE SImDI_LeSS_tHan(a,B) (((a) < (b))? 0xFfFFfFFF : 0)

#defIne SIMDi_COnVErT_tO_INT(a) static_CAsT<int>(roundf(A))
#deFine SIMDf_CONvERt_TO_FLOaT(A) stATic_caSt<fLoat>(a)
#Endif

//#dEFine SImDf_SIGN_FLiP(A) sIMDf_Xor(a,SIMDf_num(nEg0)))
//#deFine SIMDi_GREATER_EquAl(A,b) SIMDi_NOT(SIMDI_LESS_ThAn(A,b))
//#DEFinE SImDi_LESS_EQUaL(A,b) SIMdI_NOT(SIMdI_GreatER_thAN(a,b))
//#define SImDi_BLENDV(a,b, MAsk) sIMDi_CaSt_TO_inT(SIMDF_BLENdV(siMDF_CAST_TO_FLOAt(a),SImDf_CAST_TO_fLOAT(b),siMDf_CASt_tO_FLOAT(Mask)))

#if sIMd_LEvEL == Fn_aVx512

#dEfiNe maSK_or(a,B) ((a)|(b))
#DEfiNe MASK_ANd(a,B) ((a)&(B))
#defiNe MAsk_and_NOT(A,b) (~(a)&(B))
#defIne MAsK_NOT(a) (~(a))

#define sIMdf_MAsk(m,a) _Mm512_masKz_mov_Ps(m,a)
#DeFine SiMDf_MAsK_ADD(M,a,B) _
) ((a) ^ (b))
#define SIMD i_NOT(a) ( ~(a)) 

# def in e SI MDi_ SHIFT_R(a, b)( (a)>> (b))
#define SIMDi_ SHIFT _L ( a, b )  ( (a) < < (b))#d e f ine  S IM Di_ EQ U AL (a,b)  (( (a) ==(b))? 0xFF FFF FF F : 0)
#defi n eSIMDi_GREA TER _THAN(a,b) ( ((a ) > (b )) ? 0 x FFFFF FFF  : 0) 
#defi n e SIMD i_LESS_TH AN ( a,b) ( ( (a) < ( b ) )?  0xF FFFFFFF : 0)

#de f in e  SIMDi_CONVERT _TO_IN T( a )s t ati c_c ast<int>(r ou ndf(a ) )
#defi n eS I M Df_ C ONVERT_TO_FLO AT(a) stati c _ca st<flo at >(a ) 
#endi f

// #d e fin e SIMDf_SIG N_FL IP(a) SIM Df_XOR ( a,SIMDf _ NUM(neg 0)))
/ /#d efi ne S I MD i_ GRE AT E R_E Q UA L(a , b)SIMDi_NO T( SI MDi_L ESS_ T H A N (a,b ))//#d efine  SIMDi_LESS_E QUA L(a, b ) S IMDi_ NOT(S IMDi _G REATE R_THAN (a,b) )//#define SIMDi _BLE NDV(a,b,mas k)  SI MD i_CAS T _TO_IN T(S IMD f_BLEND V(SIMDf _ CAS T_ T O _ FL OAT(a),SIMDf_CAST_ TO _ F LO AT(b),SI MDf_CA S T_ TO _ FLOAT(ma sk ))) 

#i f SIMD_ LEVE L  = = FN_AVX 512

# d ef in e MASK_ OR (a,b)(( a)| (b) )
#de f ineMASK_A ND(a,b)((a)& ( b))
#define MA S K_AND_NOT(a,b )  ( ~ ( a) & (b)) 
#d efine MASK_ NOT( a ) (~ (a)) 
# def i ne SI MDf_M AS K (m , a) _mm512_maskz_mov _p s(m,a) 
#def ine SIMDf_MAS K_ADD(m,a, b ) _
) ((a)_^ (b))
#define_SIMDi_NOT(a) (~(a))

#define SIMDi_SHIFT_R(a, b)_((a) >>_(b))
#define_SIMDi_SHIFT_L(a, b)_((a)_<< (b))

#define SIMDi_EQUAL(a,b)_(((a) == (b))?_0xFFFFFFFF : 0)
#define SIMDi_GREATER_THAN(a,b)_(((a) > (b))?_0xFFFFFFFF_: 0)
#define SIMDi_LESS_THAN(a,b) (((a) < (b))? 0xFFFFFFFF : 0)

#define SIMDi_CONVERT_TO_INT(a) static_cast<int>(roundf(a))
#define SIMDf_CONVERT_TO_FLOAT(a) static_cast<float>(a)
#endif

//#define SIMDf_SIGN_FLIP(a)_SIMDf_XOR(a,SIMDf_NUM(neg0)))
//#define_SIMDi_GREATER_EQUAL(a,b) SIMDi_NOT(SIMDi_LESS_THAN(a,b))
//#define_SIMDi_LESS_EQUAL(a,b)_SIMDi_NOT(SIMDi_GREATER_THAN(a,b))
//#define_SIMDi_BLENDV(a,b, mask) SIMDi_CAST_TO_INT(SIMDf_BLENDV(SIMDf_CAST_TO_FLOAT(a),SIMDf_CAST_TO_FLOAT(b),SIMDf_CAST_TO_FLOAT(mask)))

#if SIMD_LEVEL ==_FN_AVX512

#define MASK_OR(a,b) ((a)|(b))
#define MASK_AND(a,b) ((a)&(b))
#define_MASK_AND_NOT(a,b) (~(a)&(b))
#define_MASK_NOT(a) (~(a))

#define SIMDf_MASK(m,a) _mm512_maskz_mov_ps(m,a)
#define SIMDf_MASK_ADD(m,a,b) _