1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  */
6 
7 #ifndef _IA_CSS_FRAC_H
8 #define _IA_CSS_FRAC_H
9 
10 /* @file
11  * This file contains typedefs used for fractional numbers
12  */
13 
14 #include <type_support.h>
15 
16 /* Fixed point types.
17  * NOTE: the 16 bit fixed point types actually occupy 32 bits
18  * to save on extension operations in the ISP code.
19  */
20 /* Unsigned fixed point value, 0 integer bits, 16 fractional bits */
21 typedef u32 ia_css_u0_16;
22 /* Unsigned fixed point value, 5 integer bits, 11 fractional bits */
23 typedef u32 ia_css_u5_11;
24 /* Unsigned fixed point value, 8 integer bits, 8 fractional bits */
25 typedef u32 ia_css_u8_8;
26 /* Signed fixed point value, 0 integer bits, 15 fractional bits */
27 typedef s32 ia_css_s0_15;
28 
29 #endif /* _IA_CSS_FRAC_H */
30