Skip to content

Commit

Permalink
Use f-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed May 1, 2024
1 parent c51bf5b commit 2554c98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/makeHilbertLuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,11 @@ def make_TR_algo3_lut(M):
for i, x in enumerate(algo2_lut):
if i % 8 == 0:
print("\n ", end="")
print(" 0x%02x" % x, end="," if i != len(algo2_lut) - 1 else "")
print(f" 0x{x:02x}", end="," if i != len(algo2_lut) - 1 else "")
print("\n}\n")
print("alignas(64) static uint8_t const HILBERT_INVERSE_LUT_3[256] = {", end="")
for i, x in enumerate(algo3_lut):
if i % 8 == 0:
print("\n ", end="")
print(" 0x%02x" % x, end="," if i != len(algo3_lut) - 1 else "")
print(f" 0x{x:02x}", end="," if i != len(algo3_lut) - 1 else "")
print("\n}\n")

0 comments on commit 2554c98

Please sign in to comment.