def changeWordSize ( words, inSize, outSize ):
    """
    >>> list( changeWordSize( [255, 18], 8, 1 ) )
...

Python changeWordSize

by Leif Ryge, July 18, 2011 18:31, No refactoring, tagged with generator, generators, binary, bitwise, bitshift, ordinal, words

Generator which transforms ...

264124475f095b65634c53da3380b88d Talk
def to_bits(number):
  bit = 1
  bits = []
...

Python extract bits from number

by Shay Erlichmen, June 09, 2011 10:48, 3 refactorings, tagged with python, bitwise

extract the bits components...

B5b3262f246b9c41f5298adc62747d52 Talk
function demortonize($n)
{
	$row = $col = 0;
...

PHP De-interleaving bits. Again

by acmesquares.myopenid.com, January 21, 2011 16:36, 1 refactoring, tagged with speed, php, interleave, bitwise

Function needs to take a se...

1731ed1957835d6573324dba9e4774e3 Talk
function deinterleave(base4_arr)
{
	var x='',y='',rc;
...

JavaScript De-interleaving bits

by acmesquares.myopenid.com, January 01, 2011 12:08, 2 refactorings, tagged with speed, javascript, interleave, bitwise

Function takes an array of ...

1731ed1957835d6573324dba9e4774e3 Talk