X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fmodl.c;h=abbfa41ae7ed7e807e3a58cb478ceb1d0ab70f8a;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=44dabee5d6a9964869279036d75511d2642be157;hpb=157f0eaa5c453d7e1c1c172d1ef808e2ac2dd2d0;p=gnulib.git diff --git a/tests/test-fmodl.c b/tests/test-fmodl.c index 44dabee5d..abbfa41ae 100644 --- a/tests/test-fmodl.c +++ b/tests/test-fmodl.c @@ -1,5 +1,5 @@ /* Test of fmodl() function. - Copyright (C) 2010-2012 Free Software Foundation, Inc. + Copyright (C) 2010-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,12 +23,18 @@ #include "signature.h" SIGNATURE_CHECK (fmodl, long double, (long double, long double)); +#include + #include "fpucw.h" #include "macros.h" -volatile long double x; -volatile long double y; -long double z; +#define DOUBLE long double +#define L_(literal) literal##L +#define MANT_DIG LDBL_MANT_DIG +#define MAX_EXP LDBL_MAX_EXP +#define FMOD fmodl +#define RANDOM randoml +#include "test-fmod.h" int main () @@ -43,5 +49,7 @@ main () z = fmodl (x, y); ASSERT (z >= 2.962721817L && z <= 2.962721819L); + test_function (); + return 0; }