mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
...
This commit is contained in:
@@ -517,7 +517,7 @@ def get_types(sz: int) -> tuple[str, str]:
|
|||||||
|
|
||||||
|
|
||||||
def gen_multistage_table(
|
def gen_multistage_table(
|
||||||
c: Callable[..., None], g: Callable[..., None], t1: Sequence[int], t2: Sequence[int], t3: Sequence[Property], shift: int, input_sz: int
|
c: Callable[..., None], g: Callable[..., None], t1: Sequence[int], t2: Sequence[int], t3: Sequence[Property], shift: int, input_max_val: int
|
||||||
) -> None:
|
) -> None:
|
||||||
t1_type_sz = getsize(t1)
|
t1_type_sz = getsize(t1)
|
||||||
ctype_t1, gotype_t1 = get_types(t1_type_sz)
|
ctype_t1, gotype_t1 = get_types(t1_type_sz)
|
||||||
@@ -553,7 +553,7 @@ def gen_multistage_table(
|
|||||||
g(f'\t{items}')
|
g(f'\t{items}')
|
||||||
g('}')
|
g('}')
|
||||||
|
|
||||||
input_type = get_types(getsize((input_sz,)))[1]
|
input_type = get_types(getsize((input_max_val,)))[1]
|
||||||
g(f'''
|
g(f'''
|
||||||
// Array accessor function that avoids bounds checking
|
// Array accessor function that avoids bounds checking
|
||||||
func {lname}_for(x {input_type}) {name} {{
|
func {lname}_for(x {input_type}) {name} {{
|
||||||
|
|||||||
Reference in New Issue
Block a user