We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8878b1 commit 517b0d2Copy full SHA for 517b0d2
loopy/target/c/__init__.py
@@ -82,6 +82,11 @@ def dtype_to_ctype(self, dtype):
82
def c99_preamble_generator(preamble_info):
83
if any(dtype.is_integral() for dtype in preamble_info.seen_dtypes):
84
yield("10_stdint", "#include <stdint.h>")
85
+ if any(dtype.numpy_dtype == np.dtype("bool")
86
+ for dtype in preamble_info.seen_dtypes):
87
+ yield("10_stdbool", "#include <stdbool.h>")
88
+ if any(dtype.is_complex() for dtype in preamble_info.seen_dtypes):
89
+ yield("10_complex", "#include <complex.h>")
90
91
92
def _preamble_generator(preamble_info):
0 commit comments