Kaspersky Neuromorphic Platform
1.0.0
API Reference
Loading...
Searching...
No Matches
macro.h
Go to the documentation of this file.
1
22
#pragma once
23
24
#include <boost/predef.h>
25
26
27
#if defined(__GNUC__)
28
# define KNP_UNROLL_LOOP() _Pragma("GCC unroll 16")
29
#elif defined(__clang__)
30
# define KNP_UNROLL_LOOP() _Pragma("unroll")
31
#elif defined(_MSC_VER)
32
# define KNP_UNROLL_LOOP() _Pragma("loop(hint_parallel(16))")
33
#endif