OSDN Git Service

PR c/10175
[pf3gnuchains/gcc-fork.git] / libf2c / libF77 / h_nint.c
1 #include "f2c.h"
2
3 #undef abs
4 #include <math.h>
5 shortint
6 h_nint (real * x)
7 {
8   return (shortint) (*x >= 0 ? floor (*x + .5) : -floor (.5 - *x));
9 }