1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Support for Intel Camera Imaging ISP subsystem.
4 * Copyright (c) 2015, Intel Corporation.
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.
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
16 #ifndef _IA_CSS_FRAC_H
17 #define _IA_CSS_FRAC_H
20 * This file contains typedefs used for fractional numbers
23 #include <type_support.h>
26 * NOTE: the 16 bit fixed point types actually occupy 32 bits
27 * to save on extension operations in the ISP code.
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;
38 #endif /* _IA_CSS_FRAC_H */