MCPcopy
hub / github.com/vladmandic/sdnext / Interp2

Function Interp2

modules/postprocess/hqx.py:42–45  ·  view source on GitHub ↗
( pc, c1, c2, c3, dest )

Source from the content-addressed store, hash-verified

40
41
42def Interp2( pc, c1, c2, c3, dest ):
43 # pc = (c1*2+c2+c3) >> 2
44 dest[pc] = (((((c1 & MASK_2) << 1) + (c2 & MASK_2) + (c3 & MASK_2)) >> 2) & MASK_2) + (((((c1 & MASK_13) << 1) + (c2 & MASK_13) + (c3 & MASK_13)) >> 2) & MASK_13)
45 dest[pc] |= (c1 & 0xFF000000)
46
47
48def Interp3( pc, c1, c2, dest ):

Callers 3

hq2xFunction · 0.85
hq3xFunction · 0.85
hq4xFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected