Lines Matching defs:amount
81 template<typename T> inline T leftShift (T value, int amount) { return value << amount; }
83 inline deUint32 rightShift (deUint32 value, int amount) { return value >> amount; }
84 inline int rightShift (int value, int amount) { return (value >> amount) | (value >= 0 ? 0 : ~(~0U >> amount)); } // \note Arithmetic shift.
86 template<typename T, int Size> Vector<T, Size> leftShift (const Vector<T, Size>& value, const Vector<int, Size>& amount)
90 result[i] = leftShift(value[i], amount[i]);
94 template<typename T, int Size> Vector<T, Size> rightShift (const Vector<T, Size>& value, const Vector<int, Size>& amount)
98 result[i] = rightShift(value[i], amount[i]);
102 template<typename T, int Size> Vector<T, Size> leftShiftVecScalar (const Vector<T, Size>& value, int amount) { return leftShift(value, Vector<int, Size>(amount)); }
103 template<typename T, int Size> Vector<T, Size> rightShiftVecScalar (const Vector<T, Size>& value, int amount) { return rightShift(value, Vector<int, Size>(amount)); }
1841 // The left shift operator. Second operand (shift amount) can be either int or uint, even for uint and int first operand, respectively.
1858 // The right shift operator. Second operand (shift amount) can be either int or uint, even for uint and int first operand, respectively.