• Home
  • Raw
  • Download

Lines Matching refs:amount

20 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) {             \
21 return amount < low ? low : (amount > high ? high : amount); \
40 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \
42 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
43 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
47 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \
49 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
50 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
51 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
55 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \
57 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \
58 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \
59 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \
60 r.w = amount.w < low.w ? low.w : (amount.w > high.w ? high.w : amount.w); \
64 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T low, T high) { \
66 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); \
67 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); \
71 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T low, T high) { \
73 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); \
74 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); \
75 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); \
79 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T low, T high) { \
81 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); \
82 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); \
83 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); \
84 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); \