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