this repo has no description
at fixPythonPipStalling 28 lines 433 B view raw
1/* 2 * nearbyintf.c 3 * cLibm 4 * 5 * Created by Ian Ollmann on 6/15/07. 6 * Copyright 2007 Apple Inc. All rights reserved. 7 * 8 * C99 implementation of nearbyintf() 9 */ 10 11#include <math.h> 12 13#ifdef ARMLIBM_SET_FLAGS 14#include <fenv.h> 15#pragma STDC FENV_ACCESS ON 16 17double nearbyint( double x ) 18{ 19 fenv_t oldEnv; 20 21 feholdexcept( &oldEnv ); 22 double result = rint( x ); 23 fesetenv( &oldEnv ); 24 25 return result; 26} 27 28#endif // ARMLIBM_SET_FLAGS