fenv_libc.h 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (C) 2016-2017 Andes Technology, Inc.
  3. * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  4. */
  5. /* Copyright (C) 2000-2013 Free Software Foundation, Inc.
  6. Contributed by Alexandre Oliva <aoliva@redhat.com>
  7. based on the corresponding file in the mips port.
  8. The GNU C Library is free software; you can redistribute it and/or
  9. modify it under the terms of the GNU Lesser General Public
  10. License as published by the Free Software Foundation; either
  11. version 2.1 of the License, or (at your option) any later version.
  12. The GNU C Library is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. Lesser General Public License for more details.
  16. You should have received a copy of the GNU Lesser General Public
  17. License along with the GNU C Library. If not, see
  18. <http://www.gnu.org/licenses/>. */
  19. #ifndef _FENV_LIBC_H
  20. #define _FENV_LIBC_H
  21. /* Mask for enabling exceptions and for the CAUSE bits. */
  22. #define ENABLE_MASK 0x00F80U
  23. /* Shift for FE_* flags to get up to the ENABLE bits. */
  24. #define ENABLE_SHIFT 5
  25. #endif /* _FENV_LIBC_H */