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

Function mul_8

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

Source from the content-addressed store, hash-verified

217 static inline float saturate(float value) { return clampf(value, 0, 1.0f); }
218
219 static inline uint8_t mul_8(uint32_t v, uint32_t q) { v = v * q + 128; return (uint8_t)((v + (v >> 8)) >> 8); }
220
221 uint16_t crc16(const void* r, size_t size, uint16_t crc)
222 {

Callers 1

transcode_sliceMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected