1570af302Sopenharmony_ci#include <math.h> 2570af302Sopenharmony_ci 3570af302Sopenharmony_ci#if defined(__HTM__) || __ARCH__ >= 9 4570af302Sopenharmony_ci 5570af302Sopenharmony_cifloat nearbyintf(float x) 6570af302Sopenharmony_ci{ 7570af302Sopenharmony_ci __asm__ ("fiebra %0, 0, %1, 4" : "=f"(x) : "f"(x)); 8570af302Sopenharmony_ci return x; 9570af302Sopenharmony_ci} 10570af302Sopenharmony_ci 11570af302Sopenharmony_ci#else 12570af302Sopenharmony_ci 13570af302Sopenharmony_ci#include "../nearbyintf.c" 14570af302Sopenharmony_ci 15570af302Sopenharmony_ci#endif 16