mirror of
https://git.wownero.com/wownero/RandomWOW.git
synced 2025-01-03 05:38:54 +00:00
Fixed portable intrinsics compilation
This commit is contained in:
parent
bf34d27ecd
commit
c5309fae9e
@ -57,6 +57,8 @@ inline __m128d _mm_abs(__m128d xd) {
|
||||
#include <cstdint>
|
||||
#include <stdexcept>
|
||||
#include <cstdlib>
|
||||
#include <cmath>
|
||||
#include "blake2/endian.h"
|
||||
|
||||
#define _mm_malloc(a,b) malloc(a)
|
||||
#define _mm_free(a) free(a)
|
||||
@ -145,8 +147,8 @@ inline __m128d _mm_castsi128_pd(__m128i a) {
|
||||
}
|
||||
|
||||
inline __m128d _mm_abs(__m128d xd) {
|
||||
xd.lo = std::abs(xd.lo);
|
||||
xd.hi = std::abs(xd.hi);
|
||||
xd.lo = std::fabs(xd.lo);
|
||||
xd.hi = std::fabs(xd.hi);
|
||||
return xd;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user