diff options
Diffstat (limited to 'libc/sysdeps/linux/sh/bits')
| -rw-r--r-- | libc/sysdeps/linux/sh/bits/fcntl.h | 2 | ||||
| -rw-r--r-- | libc/sysdeps/linux/sh/bits/fenv.h | 60 | ||||
| -rw-r--r-- | libc/sysdeps/linux/sh/bits/uClibc_arch_features.h | 3 | 
3 files changed, 37 insertions, 28 deletions
| diff --git a/libc/sysdeps/linux/sh/bits/fcntl.h b/libc/sysdeps/linux/sh/bits/fcntl.h index 0d687f04f..4ae682425 100644 --- a/libc/sysdeps/linux/sh/bits/fcntl.h +++ b/libc/sysdeps/linux/sh/bits/fcntl.h @@ -245,3 +245,5 @@ extern ssize_t tee (int __fdin, int __fdout, size_t __len,  #endif  __END_DECLS +/* Include generic Linux declarations.  */ +#include <bits/fcntl-linux.h> diff --git a/libc/sysdeps/linux/sh/bits/fenv.h b/libc/sysdeps/linux/sh/bits/fenv.h index 38c303ff2..349e7ddde 100644 --- a/libc/sysdeps/linux/sh/bits/fenv.h +++ b/libc/sysdeps/linux/sh/bits/fenv.h @@ -1,5 +1,4 @@ -/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. -   This file is part of the GNU C Library. +/* Copyright (C) 1999-2025 Free Software Foundation, Inc.     The GNU C Library is free software; you can redistribute it and/or     modify it under the terms of the GNU Lesser General Public @@ -13,7 +12,7 @@     You should have received a copy of the GNU Lesser General Public     License along with the GNU C Library; if not, see -   <http://www.gnu.org/licenses/>.  */ +   <https://www.gnu.org/licenses/>.  */  #ifndef _FENV_H  # error "Never use <bits/fenv.h> directly; include <fenv.h> instead." @@ -24,34 +23,39 @@     of the appropriate bits in the FPU control word.  */  enum    { -    FE_INEXACT = 0x04, -#define FE_INEXACT	FE_INEXACT -    FE_UNDERFLOW = 0x08, -#define FE_UNDERFLOW	FE_UNDERFLOW -    FE_OVERFLOW = 0x10, -#define FE_OVERFLOW	FE_OVERFLOW -    FE_DIVBYZERO = 0x20, -#define FE_DIVBYZERO	FE_DIVBYZERO -    FE_INVALID = 0x40, -#define FE_INVALID	FE_INVALID +    FE_INEXACT = +#define FE_INEXACT	0x04 +      FE_INEXACT, +    FE_UNDERFLOW = +#define FE_UNDERFLOW	0x08 +      FE_UNDERFLOW, +    FE_OVERFLOW = +#define FE_OVERFLOW	0x10 +      FE_OVERFLOW, +    FE_DIVBYZERO = +#define FE_DIVBYZERO	0x20 +      FE_DIVBYZERO, +    FE_INVALID = +#define FE_INVALID	0x40 +      FE_INVALID,    };  #define FE_ALL_EXCEPT \  	(FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID) -/* The SH FPU supports all of the four defined rounding modes.  We -   use again the bit positions in the FPU control word as the values -   for the appropriate macros.  */ +/* The SH FPU supports two of the four defined rounding modes: round to nearest +   and round to zero.  We use again the bit positions in the FPU control word +   as the values for the appropriate macros.  */  enum    { -    FE_TONEAREST = 0x0, -#define FE_TONEAREST	FE_TONEAREST -    FE_TOWARDZERO = 0x1, -#define FE_TOWARDZERO	FE_TOWARDZERO -    FE_UPWARD = 0x2, -#define FE_UPWARD	FE_UPWARD -    FE_DOWNWARD = 0x3 -#define FE_DOWNWARD	FE_DOWNWARD +    __FE_UNDEFINED = -1, + +    FE_TONEAREST = +#define FE_TONEAREST	0x0 +      FE_TONEAREST, +    FE_TOWARDZERO = +#define FE_TOWARDZERO	0x1 +      FE_TOWARDZERO,    }; @@ -68,4 +72,10 @@ typedef struct  fenv_t;  /* If the default argument is used we use this value.  */ -#define FE_DFL_ENV	((fenv_t *) -1) +#define FE_DFL_ENV	((const fenv_t *) -1) + +/* Type representing floating-point control modes.  */ +typedef unsigned int femode_t; + +/* Default floating-point control modes.  */ +# define FE_DFL_MODE	((const femode_t *) -1L) diff --git a/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h b/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h index 049c5ca1a..401bd45d6 100644 --- a/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h +++ b/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h @@ -15,9 +15,6 @@  /* can your target use syscall6() for mmap ? */  #define __UCLIBC_MMAP_HAS_6_ARGS__ -/* does your target use statx */ -#undef __UCLIBC_HAVE_STATX__ -  /* does your target align 64bit values in register pairs ? (32bit arches only) */  #undef __UCLIBC_SYSCALL_ALIGN_64BIT__ | 
