summaryrefslogtreecommitdiff
path: root/include/linux/tnum.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-12 14:08:35 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-12 14:08:35 +0300
commit4a12f38e23d10a5dbad6cce0abaadd10e5a1aa68 (patch)
tree533208f5479c17b9a7c162a425a967c7a7edf46b /include/linux/tnum.h
parent0d2f2f4f27694a2214701e7482ab7599ce4e5e77 (diff)
parent449d48b1b99fdaa076166e200132705ac2bee711 (diff)
downloadlinux-rolling-stable.tar.xz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tnum.h')
-rw-r--r--include/linux/tnum.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/tnum.h b/include/linux/tnum.h
index 3c13240077b8..57ed3035cc30 100644
--- a/include/linux/tnum.h
+++ b/include/linux/tnum.h
@@ -40,6 +40,8 @@ struct tnum tnum_arshift(struct tnum a, u8 min_shift, u8 insn_bitness);
struct tnum tnum_add(struct tnum a, struct tnum b);
/* Subtract two tnums, return @a - @b */
struct tnum tnum_sub(struct tnum a, struct tnum b);
+/* Neg of a tnum, return 0 - @a */
+struct tnum tnum_neg(struct tnum a);
/* Bitwise-AND, return @a & @b */
struct tnum tnum_and(struct tnum a, struct tnum b);
/* Bitwise-OR, return @a | @b */