[libc][NFC] Use cpp::optional for checking exceptional values of math functions.
authorTue Ly <lntue@google.com>
Thu, 1 Sep 2022 18:30:51 +0000 (14:30 -0400)
committerTue Ly <lntue@google.com>
Thu, 1 Sep 2022 21:39:12 +0000 (17:39 -0400)
commita4d48e3b0b66cacb8c42be8421608f7efd170c24
tree509b9e72cfe06ff62d63c0b39c1f59c2fc903807
parent0caa4a9559edcbb4195ce140de0658e46a90b52a
[libc][NFC] Use cpp::optional for checking exceptional values of math functions.

Update the utility functions for checking exceptional values of math
functions to use cpp::optional return values.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D133134
libc/src/__support/FPUtil/CMakeLists.txt
libc/src/__support/FPUtil/except_value_utils.h
libc/src/math/generic/cosf.cpp
libc/src/math/generic/tanf.cpp