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

Message ID 20230616144318.39532-1-andriy.shevchenko@linux.intel.com (mailing list archive)
State Not Applicable
Headers
Series [v1,1/1] math.h: Introduce struct u8_fract and struct s8_fract |

Commit Message

Andy Shevchenko June 16, 2023, 2:43 p.m. UTC
  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@linux.intel.com>
---
 include/linux/math.h | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

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)