* @brief Clamp a float value between 0.0f and 255.0f. * * NaNs are turned into 0.0f. * * @param v The value to clamp. * * @return The clamped value. */
| 302 | * @return The clamped value. |
| 303 | */ |
| 304 | static inline float clamp255f(float v) |
| 305 | { |
| 306 | return astc::clamp(v, 0.0f, 255.0f); |
| 307 | } |
| 308 | |
| 309 | /** |
| 310 | * @brief SP float round-down. |
no test coverage detected