Lines Matching +full:ls +full:- +full:bits
163 return len(line) - len(line.lstrip(" "))
186 … with the given example, if arg_num is -2 the 2nd parm to the left of the
187 … "=" ("rc" in this case) should be returned. If arg_num is -1, the 1st
189 … If arg_num is less than -2, an entire dictionary is returned. The keys
190 to the dictionary for this example would be -2 and -1.
235 'Programmer error - Variable "stack_frame_ix" has an'
268 "Programmer error - The caller has asked for"
296 line_ix = cur_line_no - source_line_num - 1
299 line_ix = cur_line_no - source_line_num
319 # work-around below for this deficiency.
348 import_name_regex = "([a-zA-Z0-9_]+\\.)?"
356 for start_line_ix in range(line_ix, 0, -1):
365 "Programmer error - Could not find the source line with"
381 end_line_ix -= 1
385 prior_line = source_lines[start_line_ix - 1]
392 start_line_ix -= 1
412 # A non-ordered dict doesn't look as nice when printed but it will do.
414 ix = len(lvalues_list) * -1
445 nest_level = -1
456 nest_level -= 1
484 argument = args_list[arg_num - 1]
507 #(CDT) 2016/07/08 15:25:35 - Hi.
517 #(CDT) 2016/08/03 17:12:05 - Hi.
525 #(CDT) 2016/08/03 17:16:25.510469 - Hi.
533 #(CDT) 2016/08/03 17:17:40 - 0 - Hi.
537 #(CDT) 2016/08/03 17:18:47.317339 - 0.000046 - Hi.
562 + " - "
571 time_string = time_string + " - " + elapsed_seconds
573 return time_string + " - " + buffer
587 - A time stamp
588 - The "**ERROR**" string
589 - The caller's buffer string.
599 #(CDT) 2016/08/03 17:12:05 - **ERROR** Oops.
611 Return the digit length in bits.
636 …# Consider a single nibble whose signed values can range from -8 to 7 (0x8 to 0x7). A value of 0x7
637 … # equals 0b0111. Therefore, its length in bits is 3. Since the negative bit (i.e. 0b1000) is not
638 … # set, the value 7 clearly will fit in one nibble. With -8 = 0x8 = 0b1000, one has the smallest
639 …# negative value that will fit. Note that it requires 3 bits of 0. So by converting a number val…
640 … # of -8 to a working_number of 7, this function can accurately calculate the number of bits and
642 working_number = abs(number) - 1
650 return len(bin(working_number)) - 2
666 …# Consider a single nibble whose signed values can range from -8 to 7 (0x8 to 0x7). A value of 0x7
667 … # equals 0b0111. Therefore, its length in bits is 3. Since the negative bit (i.e. 0b1000) is not
668 … # set, the value 7 clearly will fit in one nibble. With -8 = 0x8 = 0b1000, one has the smallest
669 …# negative value that will fit. Note that it requires 3 bits of 0. So by converting a number val…
670 … # of -8 to a working_number of 7, this function can accurately calculate the number of bits and
672 working_number = abs(number) - 1
685 … # Example: the number 7 requires 3 bits. The divmod above produces, 0 with remainder of 3. So
689 …# Check to see whether the negative bit is set. This is the left-most bit in the highest order di…
690 negative_mask = 2 ** (num_hex_digits * 4 - 1)
742 Return non-zero if var_value is a type of dictionary and 0 if it is not.
744 …The specific non-zero value returned will indicate what type of dictionary var_value is (see const…
829 … Create a string consisting of function-definition code that can be executed to create constant fmt
847 bits = 0x00000001
850 buffer += " return " + "0x%08x" % bits + "\n"
851 bits = bits << 1
895 …When sprint_varx is processing a multi-level object such as a list or dictionary (which in turn may
1022 #(CDT) 2016/08/10 17:34:42.847374 - 0.001285 - Doing this...
1024 #(CDT) 2016/08/10 17:34:42.847510 - 0.000136 - Doing that...
1043 … A bit map to dictate the format of the output. For printing multi-level
1047 … last element in the list pertains to all subordinate levels. The bits
1051 … mutually exclusive bits (hexa() | octal()), behavior is not guaranteed.
1101 col1_width = col1_width - indent
1112 # example, instead of printing -1 as "0x-000000000000001" it will be printed as
1114 var_value = var_value & (2 ** (num_hex_digits * 4) - 1)
1137 "%" + str(indent) + "s%-" + str(col1_width) + "s" + value_format
1246 indent -= 2
1248 col1_width = col1_width - indent
1252 + "s%-"
1308 def sprint_dashes(indent=dft_indent, width=80, line_feed=1, char="-"):
1329 Pre-pend the specified number of characters to the text string (i.e. indent it) and return it.
1411 # Now we need to print this in a nicely-wrapped way.
1426 -------------------------------------------------------------------------
1430 ------ ------------------------------------------------------------------
1435 -------------------------------------------------------------------------
1482 #(CDT) 2016/08/25 17:54:27 - Executing: func1(x = 1)
1506 max_width = 160 - (dft_col1_width + 11)
1669 Sample output for a cmd_buf of "ls"
1671 #(CDT) 2016/08/25 17:57:36 - Issuing: ls
1677 #(CDT) 2016/08/25 17:57:36 - (test_mode) Issuing: ls
1715 total_time = time.time() - start_time
1987 - Expect that there is an sprint_foo_bar function already in existence.
1988 - Create a print_foo_bar function which calls sprint_foo_bar and prints the result.
1989 …- Create a qprint_foo_bar function which calls upon sprint_foo_bar only if global value quiet is 0.
1990 …- Create a dprint_foo_bar function which calls upon sprint_foo_bar only if global value debug is 1.