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

Function rtna_shift32

Source/astcenc_mathlib_softfloat.cpp:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static uint32_t rtna_shift32(uint32_t inp, uint32_t shamt)
71{
72 uint32_t vl1 = (UINT32_C(1) << shamt) >> 1;
73 inp += vl1;
74 inp >>= shamt;
75 return inp;
76}
77
78static uint32_t rtup_shift32(uint32_t inp, uint32_t shamt)
79{

Callers 1

sf32_to_sf16Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected