diff options
| author | Michael Jones <michaelrj@google.com> | 2021-11-19 13:56:16 -0800 |
|---|---|---|
| committer | Michael Jones <michaelrj@google.com> | 2021-12-07 10:49:47 -0800 |
| commit | 1c92911e9e1d503c0dfc4367da7f15d0dff50587 (patch) | |
| tree | 56c5d73df9965c46cc730cfe462f533536c90d96 /libc/src/fenv/fesetexceptflag.cpp | |
| parent | 43e2f7cd248acf799bf97af2388940c9c39151e0 (diff) | |
[libc] apply new lint rules
This patch applies the lint rules described in the previous patch. There
was also a significant amount of effort put into manually fixing things,
since all of the templated functions, or structs defined in /spec, were
not updated and had to be handled manually.
Reviewed By: sivachandra, lntue
Differential Revision: https://reviews.llvm.org/D114302
Diffstat (limited to 'libc/src/fenv/fesetexceptflag.cpp')
| -rw-r--r-- | libc/src/fenv/fesetexceptflag.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/src/fenv/fesetexceptflag.cpp b/libc/src/fenv/fesetexceptflag.cpp index 7e480e39d24c..93f22a4be1cb 100644 --- a/libc/src/fenv/fesetexceptflag.cpp +++ b/libc/src/fenv/fesetexceptflag.cpp @@ -21,8 +21,8 @@ LLVM_LIBC_FUNCTION(int, fesetexceptflag, static_assert(sizeof(int) >= sizeof(fexcept_t), "fexcept_t value cannot fit in an int value."); int excepts_to_set = static_cast<const int>(*flagp) & excepts; - fputil::clearExcept(FE_ALL_EXCEPT); - return fputil::setExcept(excepts_to_set); + fputil::clear_except(FE_ALL_EXCEPT); + return fputil::set_except(excepts_to_set); } } // namespace __llvm_libc |
