brintos

brintos / llvm-project-archived public Read only

0
0
Text · 613 B · 7e253d0 Raw
21 lines · c
1/*===---- __float_infinity_nan.h -------------------------------------------===2 *3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4 * See https://llvm.org/LICENSE.txt for license information.5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6 *7 *===-----------------------------------------------------------------------===8 */9 10#ifndef __CLANG_FLOAT_INFINITY_NAN_H11#define __CLANG_FLOAT_INFINITY_NAN_H12 13/* C23 5.2.5.3.3p29-30 */14#undef INFINITY15#undef NAN16 17#define INFINITY (__builtin_inff())18#define NAN (__builtin_nanf(""))19 20#endif /* __CLANG_FLOAT_INFINITY_NAN_H */21