Home
last modified time | relevance | path

Searched refs:mapped_bounds (Results 1 – 1 of 1) sorted by relevance

/external/grpc-grpc/tools/codegen/core/
Dgen_stats_data.py73 def shift_works_until(mapped_bounds, shift_bits): argument
74 for i, ab in enumerate(zip(mapped_bounds, mapped_bounds[1:])):
78 return len(mapped_bounds)
81 def find_ideal_shift(mapped_bounds, max_size): argument
84 n = shift_works_until(mapped_bounds, shift_bits)
86 table_size = mapped_bounds[n - 1] >> shift_bits
97 def gen_map_table(mapped_bounds, shift_data): argument
100 print mapped_bounds
101 mapped_bounds = [x >> shift_data[0] for x in mapped_bounds]
102 print mapped_bounds
[all …]