| 256 | } |
| 257 | |
| 258 | static void normalize4_if_needed(float out[4]) FL_NOEXCEPT { |
| 259 | const float m = fl::max(fl::max(out[0], out[1]), fl::max(out[2], out[3])); |
| 260 | if (m > 1.0f) { |
| 261 | const float inv_m = 1.0f / m; |
| 262 | out[0] *= inv_m; out[1] *= inv_m; out[2] *= inv_m; out[3] *= inv_m; |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | static const float* column_for_idx(const ProfileCache& cache, int idx) FL_NOEXCEPT { |
| 267 | switch (idx) { |
no test coverage detected