simplify lround and llround functions
Simple wrappers around round is enough because spurious inexact exception is allowed.
This commit is contained in:
parent
65db00983f
commit
afad262440
6 changed files with 20 additions and 112 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue