MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / clampi

Function clampi

external/basisu/transcoder/basisu_transcoder.cpp:215–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213 }
214
215 static inline int32_t clampi(int32_t value, int32_t low, int32_t high) { if (value < low) value = low; else if (value > high) value = high; return value; }
216 static inline float clampf(float value, float low, float high) { if (value < low) value = low; else if (value > high) value = high; return value; }
217 static inline float saturate(float value) { return clampf(value, 0, 1.0f); }
218

Callers 4

determine_shared_pbitsFunction · 0.70
determine_unique_pbitsFunction · 0.70
pack_eacFunction · 0.70
pack_eac_high_qualityFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected