fast_roundf implementations in asm for ARM64. (#511)
This commit is contained in:
parent
6ae0115bf7
commit
8c4c14ea73
@ -329,6 +329,12 @@ inline float fast_roundf(float f) noexcept
|
|||||||
__asm__ __volatile__("frndint" : "=t"(out) : "0"(f));
|
__asm__ __volatile__("frndint" : "=t"(out) : "0"(f));
|
||||||
return out;
|
return out;
|
||||||
|
|
||||||
|
#elif (defined(__GNUC__) || defined(__clang__)) && defined(__aarch64__)
|
||||||
|
|
||||||
|
float out;
|
||||||
|
__asm__ volatile("frintx %s0, %s1" : "=w"(out) : "w"(f));
|
||||||
|
return out;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* Integral limit, where sub-integral precision is not available for
|
/* Integral limit, where sub-integral precision is not available for
|
||||||
|
Loading…
x
Reference in New Issue
Block a user