Home | History | Annotate | Download | only in bin-utils

Lines Matching refs:binary

5 def binary(n, width=None):
7 Return a list of (0|1)'s for the binary representation of n where n >= 0.
27 Return a list of (0|1)'s for the binary representation of a width-bit two's
35 return binary(n, width)
41 return binary(val*2 - abs(n))
43 # print binary(0xABCD)
45 # print binary(0x1F, 8)
51 # print binary(7)
64 """Convert the unsigned integer to print its binary representation.
66 args[1] (optional) is the bit width of the binary representation
85 bits = binary(n, width)