]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/aarch64/fpu/log_advsimd.c
aarch64/fpu: Sync libmvec routines from 2.39 and before with AOR
[thirdparty/glibc.git] / sysdeps / aarch64 / fpu / log_advsimd.c
index 067ae7961300c66b43c32e1b35b8f7d505febd1f..21df61728ca87374a10ae367180732f068d925cd 100644 (file)
@@ -58,8 +58,13 @@ lookup (uint64x2_t i)
   uint64_t i1 = (i[1] >> (52 - V_LOG_TABLE_BITS)) & IndexMask;
   float64x2_t e0 = vld1q_f64 (&__v_log_data.table[i0].invc);
   float64x2_t e1 = vld1q_f64 (&__v_log_data.table[i1].invc);
+#if __BYTE_ORDER == __LITTLE_ENDIAN
   e.invc = vuzp1q_f64 (e0, e1);
   e.logc = vuzp2q_f64 (e0, e1);
+#else
+  e.invc = vuzp1q_f64 (e1, e0);
+  e.logc = vuzp2q_f64 (e1, e0);
+#endif
   return e;
 }