Lines Matching +full:no +full:- +full:divider
2 * Copyright 2012-15 Advanced Micro Devices, Inc.
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
29 #define DIVIDER 10000 macro
31 /* S2D13 value in [-3.00...0.9999] */
32 #define S2D13_MIN (-3 * DIVIDER)
33 #define S2D13_MAX (3 * DIVIDER)
49 if (d <= (uint16_t)(1 << integer_bits) - (1 / (uint16_t)divisor)) in fixed_point_to_int_frac()
77 * convert_float_matrix - This converts a double into HW register spec defined format S2D13.
85 dc_fixpt_from_fraction(S2D13_MIN, DIVIDER); in convert_float_matrix()
87 dc_fixpt_from_fraction(S2D13_MAX, DIVIDER); in convert_float_matrix()
110 uint16_t value_mask = sign_mask - 1; in int_frac_to_fixed_point()
113 (FIXED31_32_BITS_PER_FRACTIONAL_PART - fractional_bits); in int_frac_to_fixed_point()
122 * convert_hw_matrix - converts HW values into fixed31_32 matrix.
127 * Converts HW register spec defined format S2D13 into a fixed-point 31.32