/* Test of hypot() function.
- Copyright (C) 2010-2012 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
#include "signature.h"
SIGNATURE_CHECK (hypot, double, (double, double));
+#include <float.h>
+
#include "macros.h"
-volatile double x;
-volatile double y;
-double z;
+#undef MIN
+#undef MAX
+
+#define DOUBLE double
+#define HUGEVAL HUGE_VAL
+#define L_(literal) literal
+#define MANT_DIG DBL_MANT_DIG
+#define MIN DBL_MIN
+#define MAX DBL_MAX
+#define HYPOT hypot
+#define RANDOM randomd
+#include "test-hypot.h"
int
main ()
z = hypot (x, y);
ASSERT (z >= 0.7211102550 && z <= 0.7211102551);
+ test_function ();
+
return 0;
}