You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let a = _mm512_set1_epi32(0x7FFFFFFF); // from LLVM code
262
-
let b = transmute::<f32x16, __m512i>(v2.as_f32x16());
263
-
let abs = _mm512_and_epi32(a, b);
264
-
transmute(abs)
261
+
simd_fabs(v2)
265
262
}
266
263
267
264
/// Finds the absolute value of each packed single-precision (32-bit) floating-point element in v2, storing the results in dst using writemask k (elements are copied from src when the corresponding mask bit is not set).
let a = _mm512_set1_epi64(0x7FFFFFFFFFFFFFFF); // from LLVM code
288
-
let b = transmute::<f64x8, __m512i>(v2.as_f64x8());
289
-
let abs = _mm512_and_epi64(a, b);
290
-
transmute(abs)
283
+
simd_fabs(v2)
291
284
}
292
285
293
286
/// Finds the absolute value of each packed double-precision (64-bit) floating-point element in v2, storing the results in dst using writemask k (elements are copied from src when the corresponding mask bit is not set).
0 commit comments