Fix for when f16c is not available. (#614)

This commit is contained in:
Laurent Mazare
2023-08-27 07:19:52 +01:00
committed by GitHub
parent f704e39761
commit ab36a7f3e3

View File

@ -103,7 +103,7 @@ impl CpuF16<ARR> for CurrentCpuF16 {
for i in 0..8 {
tmp[i] = (*mem_addr.add(i)).to_f32();
}
_mm_loadu_ps(tmp.as_ptr())
_mm256_loadu_ps(tmp.as_ptr())
}
unsafe fn vec_add(a: Self::Unit, b: Self::Unit) -> Self::Unit {