1 //===-- Definition of type fenv_t -----------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef __LLVM_LIBC_TYPES_FENV_T_H__
10 #define __LLVM_LIBC_TYPES_FENV_T_H__
14 unsigned char __control_word
[4];
15 unsigned char __status_word
[4];
17 #elif defined(__x86_64__)
19 unsigned char __x86_status
[28];
20 unsigned char __mxcsr
[4];
22 #elif defined(__arm__) || defined(_M_ARM)
26 #elif defined(__riscv)
27 typedef unsigned int fenv_t
;
28 #elif defined(__AMDGPU__) || defined(__NVPTX__)
33 #error "fenv_t not defined for your platform"
36 #endif // __LLVM_LIBC_TYPES_FENV_T_H__