IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 3ad84d70 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

first try

parent d356fdd1
No related branches found
No related tags found
1 merge request!477Resolve "Examples fail on M1"
Pipeline #10107 passed
...@@ -391,6 +391,7 @@ namespace random_iterator { ...@@ -391,6 +391,7 @@ namespace random_iterator {
void _init_dec(const char* s); void _init_dec(const char* s);
void _init_oct(const char* s); void _init_oct(const char* s);
#if defined(__powerpc64__) || defined(__x86_64__)
static inline uint128_t mul128(uint128_t const x, uint128_t const y) { static inline uint128_t mul128(uint128_t const x, uint128_t const y) {
uint128_t z; uint128_t z;
#ifdef __powerpc64__ #ifdef __powerpc64__
...@@ -401,6 +402,7 @@ namespace random_iterator { ...@@ -401,6 +402,7 @@ namespace random_iterator {
z.UPPER += (x.UPPER * y.LOWER) + (x.LOWER * y.UPPER); z.UPPER += (x.UPPER * y.LOWER) + (x.LOWER * y.UPPER);
return z; return z;
} }
#endif
#ifdef __BIG_ENDIAN__ #ifdef __BIG_ENDIAN__
uint64_t UPPER, LOWER; uint64_t UPPER, LOWER;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment