| 1 | //cxx . . $ `<file>/arch/x86_64/fpu/abs_64.h`/ |
| 2 | // arch/x86_64/fpu/abs_64.h |
| 3 | // |
| 4 | // This file is subject to the terms and conditions defined in |
| 5 | // 'LICENSE', which is part of this source code package. |
| 6 | // |
| 7 | |
| 8 | #include "common.h"cxx . . $ `<file>/build/common.h`/ |
| 9 | #include <emmintrin.h> |
| 10 | #include <string.h> |
| 11 | |
| 12 | static inline void fpu_abs_64cxx . . $ fpu_abs_64(13516032f235146d).(const uint64_tcxx . . $ uint64_t# *fs, uint64_tcxx . . $ uint64_t# *fd) { |
| 13 | double fs_double, fd_double; |
| 14 | __m128dcxx . . $ __m128d# fs_reg, fd_reg; |
| 15 | |
| 16 | // Prevent aliasing. |
| 17 | memcpycxx . . $ memcpy(cc817cb175f282d).(&fs_double, fs, sizeof(fs_double)); |
| 18 | |
| 19 | fs_reg = _mm_set_sdcxx . . $ _mm_set_sd(8f0e145680c0e317).(fs_double); |
| 20 | fd_reg = _mm_andnot_pdcxx . . $ _mm_andnot_pd(a27da52cef7cc9d8).(_mm_set_sdcxx . . $ _mm_set_sd(8f0e145680c0e317).(-0.0), fs_reg); |
| 21 | fd_double = _mm_cvtsd_f64cxx . . $ _mm_cvtsd_f64(c81b9216048b8182).(fd_reg); |
| 22 | |
| 23 | // Prevent aliasing. |
| 24 | memcpycxx . . $ memcpy(cc817cb175f282d).(fd, &fd_double, sizeof(fd_double)); |
| 25 | } |
| 26 |