| 1353 | } |
| 1354 | |
| 1355 | static inline vec component_max(const vec& a, const vec& b) |
| 1356 | { |
| 1357 | vec ret; |
| 1358 | for (uint32_t i = 0; i < N; i++) |
| 1359 | ret.m_s[i] = std::max(a.m_s[i], b.m_s[i]); |
| 1360 | return ret; |
| 1361 | } |
| 1362 | |
| 1363 | static inline vec component_min(const vec& a, const vec& b) |
| 1364 | { |