esp_compiler: generate likely and unlikely macros only when performance optimization is selected as build option
* to reorder instructions producing more optimized
* code.
*/
+#if (CONFIG_COMPILER_OPTIMIZATION_PERF)
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
+#else
+#define likely(x) (x)
+#define unlikely(x) (x)
+#endif
#endif
\ No newline at end of file
