1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU General Public License,
8  * version 2, as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  */
15 
16 #ifndef _IA_CSS_FRAC_H
17 #define _IA_CSS_FRAC_H
18 
19 /* @file
20  * This file contains typedefs used for fractional numbers
21  */
22 
23 #include <type_support.h>
24 
25 /* Fixed point types.
26  * NOTE: the 16 bit fixed point types actually occupy 32 bits
27  * to save on extension operations in the ISP code.
28  */
29 /* Unsigned fixed point value, 0 integer bits, 16 fractional bits */
30 typedef u32 ia_css_u0_16;
31 /* Unsigned fixed point value, 5 integer bits, 11 fractional bits */
32 typedef u32 ia_css_u5_11;
33 /* Unsigned fixed point value, 8 integer bits, 8 fractional bits */
34 typedef u32 ia_css_u8_8;
35 /* Signed fixed point value, 0 integer bits, 15 fractional bits */
36 typedef s32 ia_css_s0_15;
37 
38 #endif /* _IA_CSS_FRAC_H */
39