From df777c40c1d8bc15dcc71a7da183f2a2c99bda62 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 20 Aug 1998 17:40:36 +0000 Subject: Update. 1998-08-20 16:01 Ulrich Drepper * elf/ldd.sh.in: Redirect warnings and error messages to stderr. * elf/ldd.bash.in: Likewise. * elf/sln.c: Avoid warning for no main prototype. * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and O_WRITE. * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and F_GETSIG. * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise. 1998-08-20 Philip Blundell * sysdeps/arm/fpu/ieee754.h: Move to... * sysdeps/arm/ieee754.h: ... here. * sysdeps/arm/__longjmp.S: Put return value in correct register. Don't set the condition flags unnecessarily. * sysdeps/arm/fpu/__longjmp.S: Likewise. Restore floating point registers correctly. * sysdeps/arm/dl-machine.h: Fix problems with profiling code (patch from Scott Bambrough). * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons. * csu/initfini.c (_init): Don't check whether __gmon_start__ is NULL, just call it unconditionally. (__gmon_start__): Provide stub version as a weak symbol. 1998-07-30 Philip Blundell * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch by Scott Bambrough) * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't like `@' in .type directives. * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call. * sysdeps/arm/bsd-_setjmp.S: Likewise. * sysdeps/arm/dl-machine.h: Set __libc_stack_end. 1998-08-20 Andreas Jaeger * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value. (F_GETOWN): Likewise. * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from Linux 2.1.117). 1998-08-20 Ulrich Drepper * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not already defined. 1998-08-14 Thorsten Kukuk * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no more entries. * nis/nss_compat/compat-initgroups.c: Likewise. * nis/nss_compat/compat-pwd.c: Likewise. * nis/nss_compat/compat-spwd.c: Likewise. * nis/nss_nis/nis-alias.c: Likewise. * nis/nss_nis/nis-ethers.c: Likewise. * nis/nss_nis/nis-grp.c: Likewise. * nis/nss_nis/nis-hosts.c: Likewise. * nis/nss_nis/nis-initgroups.c: Likewise. * nis/nss_nis/nis-network.c: Likewise. * nis/nss_nis/nis-proto.c: Likewise. * nis/nss_nis/nis-pwd.c: Likewise. * nis/nss_nis/nis-rpc.c: Likewise. * nis/nss_nis/nis-service.c: Likewise. * nis/nss_nis/nis-spwd.c: Likewise. * nis/rpcsvc/yp.h: Generate new without 1024 byte limits. * nis/ypclnt.c: Try binding dir only first time, could be to old. * nis/yp_xdr.c: Remove 1024 byte limit. * nis/ypupdate_xdr.c: Likewise. * nis/nss_nis/nis-publickey.c: Make sure, nobody could send wrong data. --- sysdeps/arm/ieee754.h | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 sysdeps/arm/ieee754.h (limited to 'sysdeps/arm/ieee754.h') diff --git a/sysdeps/arm/ieee754.h b/sysdeps/arm/ieee754.h new file mode 100644 index 0000000000..73f7d6a376 --- /dev/null +++ b/sysdeps/arm/ieee754.h @@ -0,0 +1,115 @@ +/* Copyright (C) 1992, 1995, 1996, 1998 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + 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. */ + +#ifndef _IEEE754_H + +#define _IEEE754_H 1 +#include + +#include + +__BEGIN_DECLS + +union ieee754_float + { + float f; + + /* This is the IEEE 754 single-precision format. */ + struct + { + unsigned int mantissa:23; + unsigned int exponent:8; + unsigned int negative:1; + } ieee; + + /* This format makes it easier to see if a NaN is a signalling NaN. */ + struct + { + unsigned int mantissa:22; + unsigned int quiet_nan:1; + unsigned int exponent:8; + unsigned int negative:1; + } ieee_nan; + }; + +#define IEEE754_FLOAT_BIAS 0x7f /* Added to exponent. */ + + +union ieee754_double + { + double d; + + /* This is the IEEE 754 double-precision format. */ + struct + { + unsigned int mantissa0:20; + unsigned int exponent:11; + unsigned int negative:1; + unsigned int mantissa1:32; + } ieee; + + /* This format makes it easier to see if a NaN is a signalling NaN. */ + struct + { + unsigned int mantissa0:19; + unsigned int quiet_nan:1; + unsigned int exponent:11; + unsigned int negative:1; + unsigned int mantissa1:32; + } ieee_nan; + }; + +#define IEEE754_DOUBLE_BIAS 0x3ff /* Added to exponent. */ + + +/* The following two structures are correct for `new' floating point systems but + wrong for the old FPPC. The only solution seems to be to avoid their use on + old hardware. */ + +union ieee854_long_double + { + long double d; + + /* This is the IEEE 854 double-extended-precision format. */ + struct + { + unsigned int exponent:15; + unsigned int empty:16; + unsigned int negative:1; + unsigned int mantissa1:32; + unsigned int mantissa0:32; + } ieee; + + /* This is for NaNs in the IEEE 854 double-extended-precision format. */ + struct + { + unsigned int exponent:15; + unsigned int empty:16; + unsigned int negative:1; + unsigned int mantissa1:32; + unsigned int mantissa0:30; + unsigned int quiet_nan:1; + unsigned int one:1; + } ieee_nan; + }; + +#define IEEE854_LONG_DOUBLE_BIAS 0x3fff + +__END_DECLS + +#endif /* ieee754.h */ -- cgit 1.4.1