From 94c6b2eec52f7ba1d98924c25ff166e062e5656a Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Wed, 28 Sep 2022 15:21:11 +0200 Subject: [PATCH] add attribute(__pure__) --- 2019/include/br.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/2019/include/br.h b/2019/include/br.h index 30110e6..5036d33 100644 --- a/2019/include/br.h +++ b/2019/include/br.h @@ -30,7 +30,6 @@ #define ___PASTE(x, y) x##y #define __PASTE(x, y) ___PASTE(x, y) #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) -//__##prefix##__COUNTER__ /* see https://lkml.org/lkml/2018/3/20/845 for explanation of this monster */ @@ -70,6 +69,8 @@ __cmp(x, y, op), \ __cmp_once(x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y), op)) +#define __pure __attribute__((__pure__)) + /** * min - return minimum of two values of the same or compatible types * @x: first value