All pastes #286842 Raw Edit

Miscellany

public python v1 · immutable
#286842 ·published 2006-12-20 23:12 UTC
rendered paste body
def demangle_analogs(arr):	for i in range(4):		arr[i] ^= 0x17;	oarr = [0,0,0,0,0,0]		oarr[0] = (arr[0]+0x17)&0x3F # DONE	if arr[0]&0x3F > 0x28:		arr[0] += 0x40	oarr[1] = (arr[1]+0x17)&0x3F # DONE	if arr[1]&0x3F > 0x28:		arr[1] += 0x40			oarr[2] = (arr[0]&0xC0)>>3 | (arr[1]&0xC0)>>5 | (arr[2]&0x80)>>7 # DONE	#oarr[3] = arr[1]	#oarr[4] = arr[2]	#oarr[5] = arr[3]			return oarr