Home | History | Annotate | Download | only in cpu_ref

Lines Matching full:amount

85 static inline int4 clamp(int4 amount, int low, int high) {
87 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
88 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
89 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z);
90 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w);
94 static inline float4 clamp(float4 amount, float low, float high) {
96 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
97 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
98 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z);
99 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w);
103 static inline int2 clamp(int2 amount, int low, int high) {
105 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
106 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
110 static inline float2 clamp(float2 amount, float low, float high) {
112 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x);
113 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y);
117 static inline int clamp(int amount, int low, int high) {
118 return amount < low ? low : (amount > high ? high : amount);
121 static inline float clamp(float amount, float low, float high) {
122 return amount < low ? low : (amount > high ? high : amount);