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

Function Interp3

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

Source from the content-addressed store, hash-verified

46
47
48def Interp3( pc, c1, c2, dest ):
49 # pc = (c1*7+c2)/8
50 if c1 == c2:
51 dest[pc] = c1
52 return
53 dest[pc] = ((((c1 & MASK_2) * 7 + (c2 & MASK_2)) >> 3) & MASK_2) + ((((c1 & MASK_13) * 7 + (c2 & MASK_13)) >> 3) & MASK_13)
54 dest[pc] |= (c1 & 0xFF000000)
55
56
57def Interp4( pc, c1, c2, c3, dest ):

Callers 2

hq3xFunction · 0.85
hq4xFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected