Skip to content

Commit 7ce3a48

Browse files
committed
fix typo
1 parent 128f334 commit 7ce3a48

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libsharp/sharp_vecsupport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ typedef __m128d Tm;
9292
#if defined(__SSE4_1__)
9393
#define vblend__(m,a,b) _mm_blendv_pd(b,a,m)
9494
#else
95-
static inline Tv vblend(Tv m, Tv a, Tv b)
95+
static inline Tv vblend__(Tv m, Tv a, Tv b)
9696
{ return _mm_or_pd(_mm_and_pd(a,m),_mm_andnot_pd(m,b)); }
9797
#endif
9898
#define vzero _mm_setzero_pd()
@@ -201,7 +201,7 @@ typedef __mmask8 Tm;
201201
#define vfmseq(a,b,c) a=_mm512_fnmadd_pd(b,c,a)
202202
#define vfmaaeq(a,b,c,d,e) a=_mm512_fmadd_pd(d,e,_mm512_fmadd_pd(b,c,a))
203203
#define vfmaseq(a,b,c,d,e) a=_mm512_fnmadd_pd(d,e,_mm512_fmadd_pd(b,c,a))
204-
#define vneg(a) (__m512d)_mm512_xor_epi64((__m512i)_mm512_set1_pd(-0.),(__m512i)a)
204+
#define vneg(a) _mm512_mul_pd(a,_mm512_set1_pd(-1.))
205205
#define vload(a) _mm512_set1_pd(a)
206206
#define vabs(a) (__m512d)_mm512_andnot_epi64((__m512i)_mm512_set1_pd(-0.),(__m512i)a)
207207
#define vsqrt(a) _mm512_sqrt_pd(a)

0 commit comments

Comments
 (0)