X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-logl.c;h=94cf40ce5ac97b96e74562d426c30d804f61b64a;hb=9f15e6702a27649a59263a7ed571805a979d9e70;hp=12bf62425d0c280c543ddd856b9f7ef1910d0c8b;hpb=6b91d7e06d63c3d4a34db6c898d133812169a8ff;p=gnulib.git diff --git a/tests/test-logl.c b/tests/test-logl.c index 12bf62425..94cf40ce5 100644 --- a/tests/test-logl.c +++ b/tests/test-logl.c @@ -1,5 +1,5 @@ /* Test of logl() function. - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2013 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,10 +23,20 @@ #include "signature.h" SIGNATURE_CHECK (logl, long double, (long double)); +#include + #include "fpucw.h" +#include "minus-zero.h" #include "macros.h" -long double y; +#define DOUBLE long double +#define HUGEVAL HUGE_VALL +#define L_(literal) literal##L +#define MANT_DIG LDBL_MANT_DIG +#define MINUS_ZERO minus_zerol +#define LOG logl +#define RANDOM randoml +#include "test-log.h" int main () @@ -36,8 +46,11 @@ main () BEGIN_LONG_DOUBLE_ROUNDING (); /* A particular value. */ - y = logl (0.6L); + x = 0.6L; + y = logl (x); ASSERT (y >= -0.5108256238L && y <= -0.5108256237L); + test_function (); + return 0; }