/* Test of logl() 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
#include "signature.h"
SIGNATURE_CHECK (logl, long double, (long double));
+#include <float.h>
+
#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 ()
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;
}