Lines Matching refs:clamp
30 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
34 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
41 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
49 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \
58 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \
65 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high) { \
73 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T high) { \
91 extern float __attribute__((overloadable)) clamp(float amount, float low, float high);
92 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high);
93 extern float3 __attribute__((overloadable)) clamp(float3 amount, float3 low, float3 high);
94 extern float4 __attribute__((overloadable)) clamp(float4 amount, float4 low, float4 high);
95 extern float2 __attribute__((overloadable)) clamp(float2 amount, float low, float high);
96 extern float3 __attribute__((overloadable)) clamp(float3 amount, float low, float high);
97 extern float4 __attribute__((overloadable)) clamp(float4 amount, float low, float high);
757 c.x = (uchar)clamp((r * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
758 c.y = (uchar)clamp((g * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
759 c.z = (uchar)clamp((b * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
767 c.x = (uchar)clamp((r * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
768 c.y = (uchar)clamp((g * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
769 c.z = (uchar)clamp((b * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
770 c.w = (uchar)clamp((a * 255.f + 0.5f), 0.f, 255.f); in rsPackColorTo8888()
778 color = clamp(color, 0.f, 255.f); in rsPackColorTo8888()
787 color = clamp(color, 0.f, 255.f); in rsPackColorTo8888()