From 81e9dad67243a2ba7c4344e05a5e48b54efe991a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 17 Mar 1997 03:04:18 +0000 Subject: Update. 1997-03-17 04:00 Ulrich Drepper * sysdeps/libmieee754/w_atan2.c: Don't ignore exception if library type is SVID. * sysdeps/libmieee754/w_atan2f.c: Likewise. * sysdeps/libmieee754/w_atan2l.c: Likewise. * sysdeps/unix/sysv/linux/sys/mman.h (msync): Add descrption for FLAGS parameter. 1997-03-16 20:28 Philip Blundell * sysdeps/unix/sysv/linux/socketbits.h: Add more SOL_ values. Change msg_iovlen and msg_controllen (in struct msghdr) to `size_t' to keep in step with kernel. * manual/examples/dir2.c: New example for scandir. * math/test/float.c: New file. Frontend for float tests. * math/test/double.c: New file. Frontend for double tests. * math/test/longdouble.c: New file. Frontend for long double tests. * sysdeps/ieee754/huge_val.h: Remove definition of long double * sysdeps/libm-i387/s_scalbn.S: Likewise. * sysdeps/libm-i387/s_scalbnf.S: Likewise. * sysdeps/libm-i387/s_scalbnl.S: Likewise. * sysdeps/libm-i387/s_expm1.S: Change return value for -inf * sysdeps/libm-i387/s_expm1f.S: Likewise. * sysdeps/libm-i387/s_expm1l.S: Likewise. * sysdeps/libm-i387/s_isinfl.c: Return -1 for -inf. * sysdeps/libm-i387/s_logbl.S: Correct return value. Discard first * sysdeps/libm-ieee754/w_powf.c: Likewise. * sysdeps/libm-ieee754/w_powl.c: Likewise. * sysdeps/unix/sysv/linux/alpha/statbuf.h: Likewise. * nss/nss_files/files-hosts.c: Likewise. Based on a patch by H.J. Lu . * nis/ypclnt.c (__yp_bind): Fix possible buffer overflow. * posix/unistd.h: Add prototype for __euidaccess. * sysdeps/stub/euidaccess.c: Likewise. --- math/test-double.c | 29 +++++++++++++++++++++++++++++ math/test-float.c | 29 +++++++++++++++++++++++++++++ math/test-longdouble.c | 29 +++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) create mode 100644 math/test-double.c create mode 100644 math/test-float.c create mode 100644 math/test-longdouble.c (limited to 'math') diff --git a/math/test-double.c b/math/test-double.c new file mode 100644 index 0000000..5f562a0 --- /dev/null +++ b/math/test-double.c @@ -0,0 +1,29 @@ +/* Copyright (C) 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Andreas Jaeger , 1997. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#define FUNC(function) function +#define MATHTYPE double +#define TEST_MSG "testing double (without inline functions)\n" +#define MATHCONST(x) x +#define CHOOSE(Clongdouble,Cdouble,Cfloat) Cdouble +#define PRINTF_EXPR "e" + +#define __NO_MATH_INLINES + +#include "libm-test.c" diff --git a/math/test-float.c b/math/test-float.c new file mode 100644 index 0000000..fa9f2bc --- /dev/null +++ b/math/test-float.c @@ -0,0 +1,29 @@ +/* Copyright (C) 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Andreas Jaeger , 1997. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#define FUNC(function) function ## f +#define MATHTYPE float +#define TEST_MSG "testing float (without inline functions)\n" +#define MATHCONST(x) x +#define CHOOSE(Clongdouble,Cdouble,Cfloat) Cfloat +#define PRINTF_EXPR "e" + +#define __NO_MATH_INLINES + +#include "libm-test.c" diff --git a/math/test-longdouble.c b/math/test-longdouble.c new file mode 100644 index 0000000..9eebe5a --- /dev/null +++ b/math/test-longdouble.c @@ -0,0 +1,29 @@ +/* Copyright (C) 1997 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Andreas Jaeger , 1997. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#define FUNC(function) function##l +#define MATHTYPE long double +#define TEST_MSG "testing long double (without inline functions)\n" +#define MATHCONST(x) x##L +#define CHOOSE(Clongdouble,Cdouble,Cfloat) Clongdouble +#define PRINTF_EXPR "Le" + +#define __NO_MATH_INLINES + +#include "libm-test.c" -- cgit v1.1