MCPcopy Create free account
hub / github.com/defold/defold / mul_8

Function mul_8

engine/dlib/src/basis/transcoder/basisu_transcoder.cpp:260–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 static inline float saturate(float value) { return clampf(value, 0, 1.0f); }
259
260 static inline uint8_t mul_8(uint32_t v, uint32_t q) { v = v * q + 128; return (uint8_t)((v + (v >> 8)) >> 8); }
261
262 uint16_t crc16(const void* r, size_t size, uint16_t crc)
263 {

Callers 1

transcode_sliceMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected