1 //===-- Definition of macros to be used with complex functions ------------===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef __LLVM_LIBC_MACROS_COMPLEX_MACROS_H
10 #define __LLVM_LIBC_MACROS_COMPLEX_MACROS_H
12 #ifndef __STDC_NO_COMPLEX__
14 #define __STDC_VERSION_COMPLEX_H__ 202311L
16 #define complex _Complex
17 #define _Complex_I ((_Complex float)1.0fi)
20 // TODO: Add imaginary macros once GCC or Clang support _Imaginary builtin-type.
24 #endif // __LLVM_LIBC_MACROS_COMPLEX_MACROS_H