Lines Matching refs:high

25 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) {             \
26 return amount < low ? low : (amount > high ? high : amount); \
46 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
48 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
49 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
53 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
55 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
56 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
57 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
61 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \
63 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
64 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
65 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
66 r.w = amount.w < low.w ? low.w : (amount.w > high.w ? high.w : amount.w); \
70 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \
72 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); \
73 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); \
77 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high) { \
79 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); \
80 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); \
81 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); \
85 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T 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); \