Skip to content

Commit

Permalink
Fix whitespace in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
markshannon authored and Glyphack committed Jan 27, 2024
1 parent 38d4257 commit fffa618
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Python/executor_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Tools/cases_generator/tier2_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ def write_uop(uop: Uop, out: CWriter, stack: Stack) -> None:
for cache in uop.caches:
if cache.name != "unused":
if cache.size == 4:
type = "PyObject *"
type = cast ="PyObject *"
else:
type = f"uint{cache.size*16}_t"
out.emit(f"{type} {cache.name} = ({type})CURRENT_OPERAND();\n")
type = f"uint{cache.size*16}_t "
cast = f"uint{cache.size*16}_t"
out.emit(f"{type}{cache.name} = ({cast})CURRENT_OPERAND();\n")
emit_tokens(out, uop, stack, None, TIER2_REPLACEMENT_FUNCTIONS)
if uop.properties.stores_sp:
for i, var in enumerate(uop.stack.outputs):
Expand Down

0 comments on commit fffa618

Please sign in to comment.