mirror of
https://git.wownero.com/wownero/RandomWOW.git
synced 2024-08-15 00:23:14 +00:00
Fixed portable intrinsics compilation
This commit is contained in:
parent
bf34d27ecd
commit
c5309fae9e
1 changed files with 4 additions and 2 deletions
|
@ -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 a new issue