blob: 7e253d0bc59b92d85668aa7a698b8a1322c97754 [file] [log] [blame] [edit]
/*===---- __float_infinity_nan.h -------------------------------------------===
*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*===-----------------------------------------------------------------------===
*/
#ifndef __CLANG_FLOAT_INFINITY_NAN_H
#define __CLANG_FLOAT_INFINITY_NAN_H
/* C23 5.2.5.3.3p29-30 */
#undef INFINITY
#undef NAN
#define INFINITY (__builtin_inff())
#define NAN (__builtin_nanf(""))
#endif /* __CLANG_FLOAT_INFINITY_NAN_H */