Vax does not do +/- INF.

This commit is contained in:
martin 2014-03-07 12:46:47 +00:00
parent cf5baf63ad
commit 1ecc2818f1
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: t_atan.c,v 1.12 2014/03/05 20:15:41 dsl Exp $ */
/* $NetBSD: t_atan.c,v 1.13 2014/03/07 12:46:47 martin Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@ -37,8 +37,11 @@ static const struct {
double x;
double y;
} values[] = {
#ifndef __vax__
/* vax has no +/- INF */
{ T_LIBM_MINUS_INF, -M_PI / 2 },
{ T_LIBM_PLUS_INF, M_PI / 2 },
#endif
{ -100, -1.560796660108231, },
{ -10, -1.471127674303735, },
{ -1, -M_PI / 4, },

View File

@ -1,4 +1,4 @@
/* $NetBSD: t_libm.h,v 1.2 2014/03/05 20:14:46 dsl Exp $ */
/* $NetBSD: t_libm.h,v 1.3 2014/03/07 12:46:47 martin Exp $ */
/*
* Check result of fn(arg) is correct within the bounds.
@ -43,9 +43,11 @@
} while (0)
/* Some useful constants (for test vectors) */
#ifndef __vax__ /* no NAN nor +/- INF on vax */
#define T_LIBM_NAN (0.0 / 0.0)
#define T_LIBM_PLUS_INF (+1.0 / 0.0)
#define T_LIBM_MINUS_INF (-1.0 / 0.0)
#endif
/* One line definition of a simple test */
#define ATF_LIBM_TEST(name, description) \