summaryrefslogtreecommitdiff
path: root/include/linux/overflow-arith.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/overflow-arith.h')
-rw-r--r--include/linux/overflow-arith.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/linux/overflow-arith.h b/include/linux/overflow-arith.h
deleted file mode 100644
index e12ccf854a70..000000000000
--- a/include/linux/overflow-arith.h
+++ /dev/null
@@ -1,18 +0,0 @@
-#pragma once
-
-#include <linux/kernel.h>
-
-#ifdef CC_HAVE_BUILTIN_OVERFLOW
-
-#define overflow_usub __builtin_usub_overflow
-
-#else
-
-static inline bool overflow_usub(unsigned int a, unsigned int b,
- unsigned int *res)
-{
- *res = a - b;
- return *res > a ? true : false;
-}
-
-#endif