MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / rtup_shift32

Function rtup_shift32

Source/astcenc_mathlib_softfloat.cpp:78–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78static uint32_t rtup_shift32(uint32_t inp, uint32_t shamt)
79{
80 uint32_t vl1 = UINT32_C(1) << shamt;
81 inp += vl1;
82 inp--;
83 inp >>= shamt;
84 return inp;
85}
86
87/* convert from FP16 to FP32. */
88static sf32 sf16_to_sf32(sf16 inp)

Callers 1

sf32_to_sf16Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected