Home
last modified time | relevance | path

Searched refs:fractional_shift (Results 1 – 2 of 2) sorted by relevance

/external/libchrome/base/numerics/
Dsaturated_arithmetic_arm.h42 inline int GetMaxSaturatedSetResultForTesting(int fractional_shift) { in GetMaxSaturatedSetResultForTesting() argument
46 return std::numeric_limits<int>::max() & ~((1 << fractional_shift) - 1); in GetMaxSaturatedSetResultForTesting()
49 inline int GetMinSaturatedSetResultForTesting(int fractional_shift) { in GetMinSaturatedSetResultForTesting() argument
53 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()
Dsaturated_arithmetic.h65 ALWAYS_INLINE int GetMaxSaturatedSetResultForTesting(int fractional_shift) { in GetMaxSaturatedSetResultForTesting() argument
72 ALWAYS_INLINE int GetMinSaturatedSetResultForTesting(int fractional_shift) { in GetMinSaturatedSetResultForTesting() argument
76 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()