xref: /aosp_15_r20/external/llvm-libc/include/llvm-libc-macros/complex-macros.h (revision 71db0c75aadcf003ffe3238005f61d7618a3fead)
1 //===-- Definition of macros to be used with complex functions ------------===//
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 #ifndef __LLVM_LIBC_MACROS_COMPLEX_MACROS_H
10 #define __LLVM_LIBC_MACROS_COMPLEX_MACROS_H
11 
12 #ifndef __STDC_NO_COMPLEX__
13 
14 #define __STDC_VERSION_COMPLEX_H__ 202311L
15 
16 #define complex _Complex
17 #define _Complex_I ((_Complex float)1.0fi)
18 #define I _Complex_I
19 
20 // TODO: Add imaginary macros once GCC or Clang support _Imaginary builtin-type.
21 
22 #endif
23 
24 #endif // __LLVM_LIBC_MACROS_COMPLEX_MACROS_H
25