Searched refs:fractional_shift (Results 1 – 2 of 2) sorted by relevance
42 inline int GetMaxSaturatedSetResultForTesting(int fractional_shift) { in GetMaxSaturatedSetResultForTesting() argument46 return std::numeric_limits<int>::max() & ~((1 << fractional_shift) - 1); in GetMaxSaturatedSetResultForTesting()49 inline int GetMinSaturatedSetResultForTesting(int fractional_shift) { in GetMinSaturatedSetResultForTesting() argument53 template <int fractional_shift>57 enum { Saturate = 32 - fractional_shift }; in SaturatedSet()73 [shift] "n"(fractional_shift)); in SaturatedSet()78 template <int fractional_shift>85 enum { Saturate = 31 - fractional_shift }; in SaturatedSet()101 [shift] "n"(fractional_shift)); in SaturatedSet()
65 ALWAYS_INLINE int GetMaxSaturatedSetResultForTesting(int fractional_shift) { in GetMaxSaturatedSetResultForTesting() argument72 ALWAYS_INLINE int GetMinSaturatedSetResultForTesting(int fractional_shift) { in GetMinSaturatedSetResultForTesting() argument76 template <int fractional_shift>79 std::numeric_limits<int>::max() >> fractional_shift; in SaturatedSet()82 std::numeric_limits<int>::min() >> fractional_shift; in SaturatedSet()90 return value << fractional_shift; in SaturatedSet()93 template <int fractional_shift>96 std::numeric_limits<int>::max() >> fractional_shift; in SaturatedSet()101 return value << fractional_shift; in SaturatedSet()