xref: /llvm-project/libc/include/llvm-libc-macros/math-function-macros.h (revision 739ede400b7aa7dfbec771b0d5e9c47f9da5d6cb)
1b6e41c15SPetr Hosek //===-- Definition of function macros from math.h -------------------------===//
2b6e41c15SPetr Hosek //
3b6e41c15SPetr Hosek // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4b6e41c15SPetr Hosek // See https://llvm.org/LICENSE.txt for license information.
5b6e41c15SPetr Hosek // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6b6e41c15SPetr Hosek //
7b6e41c15SPetr Hosek //===----------------------------------------------------------------------===//
8b6e41c15SPetr Hosek 
9b6e41c15SPetr Hosek #ifndef LLVM_LIBC_MACROS_MATH_FUNCTION_MACROS_H
10b6e41c15SPetr Hosek #define LLVM_LIBC_MACROS_MATH_FUNCTION_MACROS_H
11b6e41c15SPetr Hosek 
12b6e41c15SPetr Hosek #define isfinite(x) __builtin_isfinite(x)
13b6e41c15SPetr Hosek #define isinf(x) __builtin_isinf(x)
14b6e41c15SPetr Hosek #define isnan(x) __builtin_isnan(x)
153604c23dSAkiel #define signbit(x) __builtin_signbit(x)
16*739ede40SShourya Goel #define iszero(x) (x == 0)
17b6e41c15SPetr Hosek 
18b6e41c15SPetr Hosek #endif // LLVM_LIBC_MACROS_MATH_FUNCTION_MACROS_H
19