[libc] Add implementations of the remaining fenv functions.
authorSiva Chandra Reddy <sivachandra@google.com>
Tue, 16 Feb 2021 06:36:55 +0000 (22:36 -0800)
committerSiva Chandra Reddy <sivachandra@google.com>
Thu, 18 Feb 2021 21:29:40 +0000 (13:29 -0800)
commitb7e05c874b5b2a77c87df71ee3442abc2569cbb9
tree96ca078ddc990ab01a287a33a1d157faac885a72
parent53e83afcaf5ce00073348af847603b2fd6442c81
[libc] Add implementations of the remaining fenv functions.

Namely, implementations of fegetexceptfflag, fesetexceptflag,
fegetenv, fesetenv, feholdexcept and feupdateenv have been added.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D96935
25 files changed:
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/spec/stdc.td
libc/src/fenv/CMakeLists.txt
libc/src/fenv/fegetenv.cpp [new file with mode: 0644]
libc/src/fenv/fegetenv.h [new file with mode: 0644]
libc/src/fenv/fegetexceptflag.cpp [new file with mode: 0644]
libc/src/fenv/fegetexceptflag.h [new file with mode: 0644]
libc/src/fenv/feholdexcept.cpp [new file with mode: 0644]
libc/src/fenv/feholdexcept.h [new file with mode: 0644]
libc/src/fenv/fesetenv.cpp [new file with mode: 0644]
libc/src/fenv/fesetenv.h [new file with mode: 0644]
libc/src/fenv/fesetexceptflag.cpp [new file with mode: 0644]
libc/src/fenv/fesetexceptflag.h [new file with mode: 0644]
libc/src/fenv/feupdateenv.cpp [new file with mode: 0644]
libc/src/fenv/feupdateenv.h [new file with mode: 0644]
libc/test/src/fenv/CMakeLists.txt
libc/test/src/fenv/exception_flags_test.cpp [new file with mode: 0644]
libc/test/src/fenv/feholdexcept_test.cpp [new file with mode: 0644]
libc/test/src/fenv/feupdateenv_test.cpp [new file with mode: 0644]
libc/test/src/fenv/getenv_and_setenv_test.cpp [new file with mode: 0644]
libc/utils/FPUtil/DummyFEnv.h
libc/utils/FPUtil/aarch64/FEnv.h
libc/utils/FPUtil/x86_64/FEnv.h