File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -254,35 +254,35 @@ namespace hnswlib {
254254 static float
255255 InnerProductSIMD4Ext (const void *pVect1v, const void *pVect2v, const void *qty_ptr) {
256256 DISTFUNC<float > simdfunc_;
257- #if defined(USE_AVX)
257+ #if defined(USE_AVX)
258258 if (AVXCapable ())
259259 simdfunc_ = InnerProductSIMD4ExtAVX;
260260 else
261261 simdfunc_ = InnerProductSIMD4ExtSSE;
262- #else
262+ #else
263263 simdfunc_ = InnerProductSIMD4ExtSSE;
264- #endif
264+ #endif
265265 return simdfunc_ (pVect1v, pVect2v, qty_ptr);
266266 }
267267
268268 static float
269269 InnerProductSIMD16Ext (const void *pVect1v, const void *pVect2v, const void *qty_ptr) {
270270 DISTFUNC<float > simdfunc_;
271- #if defined(USE_AVX512)
271+ #if defined(USE_AVX512)
272272 if (AVX512Capable ())
273273 simdfunc_ = InnerProductSIMD16ExtAVX512;
274274 else if (AVXCapable ())
275275 simdfunc_ = InnerProductSIMD16ExtAVX;
276276 else
277277 simdfunc_ = InnerProductSIMD16ExtSSE;
278- #elif defined(USE_AVX)
278+ #elif defined(USE_AVX)
279279 if (AVXCapable ())
280280 simdfunc_ = InnerProductSIMD16ExtAVX;
281281 else
282282 simdfunc_ = InnerProductSIMD16ExtSSE;
283- #else
283+ #else
284284 simdfunc_ = InnerProductSIMD16ExtSSE;
285- #endif
285+ #endif
286286 return simdfunc_ (pVect1v, pVect2v, qty_ptr);
287287 }
288288
Original file line number Diff line number Diff line change @@ -147,21 +147,21 @@ namespace hnswlib {
147147 static float
148148 L2SqrSIMD16Ext (const void *pVect1v, const void *pVect2v, const void *qty_ptr) {
149149 DISTFUNC<float > simdfunc_;
150- #if defined(USE_AVX512)
150+ #if defined(USE_AVX512)
151151 if (AVX512Capable ())
152152 simdfunc_ = L2SqrSIMD16ExtAVX512;
153153 else if (AVXCapable ())
154154 simdfunc_ = L2SqrSIMD16ExtAVX;
155155 else
156156 simdfunc_ = L2SqrSIMD16ExtSSE;
157- #elif defined(USE_AVX)
157+ #elif defined(USE_AVX)
158158 if (AVXCapable ())
159159 simdfunc_ = L2SqrSIMD16ExtAVX;
160160 else
161161 simdfunc_ = L2SqrSIMD16ExtSSE;
162- #else
162+ #else
163163 simdfunc_ = L2SqrSIMD16ExtSSE;
164- #endif
164+ #endif
165165 return simdfunc_ (pVect1v, pVect2v, qty_ptr);
166166 }
167167
You can’t perform that action at this time.
0 commit comments