llvm-project/libc/config
Tue Ly 0f031daea8 [libc] Initial support for darwin-aarch64.
Add initial support for darwin-aarch64 (macOS M1).

Some differences compared to linux-aarch64:
- `math.h` defined `math_errhandling` by the compiler builtin `__math_errhandling()` but Apple Clang 13.0.0 on M1 does not support `__math_errhandling()` builtin as a macro function or a constexpr function.
- `math.h` defines `UNDERFLOW` and `OVERFLOW` macros.
- Besides 5 usual floating point exceptions: `FE_INEXACT`, `FE_UNDERFLOW`, `FE_OVERFLOW`, `FE_DIVBYZERO`, and `FE_INVALID`, `fenv.h` also has another floating point exception: `FE_FLUSHTOZERO`.  The corresponding trap for `FE_FLUSHTOZERO` in the control register is at the different location compared to the status register.
- `FE_FLUSHTOZERO` exception flag cannot be raised with the default CPU floating point operation mode.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D120914
2022-03-10 09:26:09 -05:00
..
darwin/arm [libc] Initial support for darwin-aarch64. 2022-03-10 09:26:09 -05:00
linux [libc] Align the stack pointer in the start function. 2022-03-07 19:45:53 +00:00
windows [libc] Implement log1pf correctly rounded to all rounding modes. 2022-02-07 16:17:18 -05:00
CMakeLists.txt Add implementations of POSIX mmap and munmap functions. 2019-12-23 14:04:02 -08:00
public_api.td [libc] Let header generator generate the type header inclusion boiler plate. 2022-01-24 23:25:19 +00:00