c - crosss compile for ARM7 : error: '__int128' is not supported for this target -
typedef unsigned __int128 uint128_t; static uint64_t mul64hi(uint64_t x, uint64_t y) { return (uint64_t) ((((__int128) x) * ((__int128) y)) >> 64); }
it is. c compiler not required support 128 bit integral type, , platform seems such instance, or if does, it's not __int128
. (try __int128_t
or int128_t
?)
consult compiler documentation absolute certainty, or consider using 3rd party large integer library, e.g. https://gmplib.org/
Comments
Post a Comment