Warning: This file is not a C or C++ file. It does not have highlighting.

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

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of libc/include/llvm-libc-macros/complex-macros.h