[PATCH v1 1/1] math.h: Introduce struct u8_fract and struct s8_fract

From: Andy Shevchenko
Date: Fri Jun 16 2023 - 10:43:22 EST


Seems there going to be users for these data types, besides
quite likely existing users that may benifit from them.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
include/linux/math.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/math.h b/include/linux/math.h
index 2d388650c556..449a29b73f6d 100644
--- a/include/linux/math.h
+++ b/include/linux/math.h
@@ -112,6 +112,8 @@ struct type##_fract { \
__##type numerator; \
__##type denominator; \
};
+__STRUCT_FRACT(s8)
+__STRUCT_FRACT(u8)
__STRUCT_FRACT(s16)
__STRUCT_FRACT(u16)
__STRUCT_FRACT(s32)
--
2.40.0.1.gaa8946217a0b