Lines Matching refs:amount
20 extern short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short hi…
30 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
31 return amount < low ? low : (amount > high ? high : amount); \
34 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
36 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
37 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
41 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
43 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
44 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
45 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
49 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \
51 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
52 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
53 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
54 r.w = amount.w < low.w ? low.w : (amount.w > high.w ? high.w : amount.w); \
58 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \
60 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); \
61 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); \
65 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high) { \
67 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); \
68 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); \
69 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); \
73 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T high) { \
75 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); \
76 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); \
77 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); \
78 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); \
88 extern float __attribute__((overloadable)) clamp(float amount, float low, float high);
89 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high);
90 extern float3 __attribute__((overloadable)) clamp(float3 amount, float3 low, float3 high);
91 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high);
92 extern float2 __attribute__((overloadable)) clamp(float2 amount, float low, float high);
93 extern float3 __attribute__((overloadable)) clamp(float3 amount, float low, float high);
94 extern float4 __attribute__((overloadable)) clamp(float4 amount, float low, float high);