Lines Matching refs:amount
25 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \
26 return amount < low ? low : (amount > high ? high : amount); \
45 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
47 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
48 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
52 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
54 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
55 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
56 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
60 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \
62 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
63 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
64 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
65 r.w = amount.w < low.w ? low.w : (amount.w > high.w ? high.w : amount.w); \
69 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \
71 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); \
72 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); \
76 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high) { \
78 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); \
79 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); \
80 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); \
84 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T high) { \
86 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); \
87 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); \
88 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); \
89 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); \