X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-sqrtl.c;h=23dcfe43ae678389bd843086b75ffdfd50e0fc34;hb=131aa1b0384b85424a03fa2099b34fa49ae9cd27;hp=a7baef783c55300075ac2f65fa40b8da1dec5b5d;hpb=494a4d32e2e9ed6201c38ff3fa28ed38c5396644;p=gnulib.git diff --git a/tests/test-sqrtl.c b/tests/test-sqrtl.c index a7baef783..23dcfe43a 100644 --- a/tests/test-sqrtl.c +++ b/tests/test-sqrtl.c @@ -1,5 +1,5 @@ /* Test of sqrtl() function. - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2012 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,11 +23,17 @@ #include "signature.h" SIGNATURE_CHECK (sqrtl, long double, (long double)); +#include + #include "fpucw.h" #include "macros.h" -volatile long double x; -long double y; +#define DOUBLE long double +#define L_(literal) literal##L +#define MANT_DIG DBL_MANT_DIG +#define SQRT sqrtl +#define RANDOM randoml +#include "test-sqrt.h" int main () @@ -41,5 +47,7 @@ main () y = sqrtl (x); ASSERT (y >= 0.7745966692L && y <= 0.7745966693L); + test_function (); + return 0; }