simplify lround and llround functions

Simple wrappers around round is enough because
spurious inexact exception is allowed.
This commit is contained in:
nsz 2012-03-18 20:52:33 +01:00
commit afad262440
6 changed files with 20 additions and 112 deletions

View file

@ -1,10 +1,6 @@
#define type double
#define roundit round
#define dtype long long
#define DTYPE_MIN LLONG_MIN
#define DTYPE_MAX LLONG_MAX
#define fn llround
#include "lround.c"
#include <math.h>
long long llround(double x)
{
return round(x);
}