clang
22.0.0git
lib
Headers
__float_infinity_nan.h
Go to the documentation of this file.
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-exception
6
*
7
*===-----------------------------------------------------------------------===
8
*/
9
10
#ifndef __CLANG_FLOAT_INFINITY_NAN_H
11
#define __CLANG_FLOAT_INFINITY_NAN_H
12
13
/* C23 5.2.5.3.3p29-30 */
14
#undef INFINITY
15
#undef NAN
16
17
#define INFINITY (__builtin_inff())
18
#define NAN (__builtin_nanf(""))
19
20
#endif
/* __CLANG_FLOAT_INFINITY_NAN_H */
Generated on
for clang by
1.14.0