Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce two bytes by replacing jae and xor with adc #63

Merged
merged 9 commits into from
Apr 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
hex count must be even
donno2048 authored Apr 12, 2024
commit 285f63602dd0306297fb8055ac0c88d2cd727337
2 changes: 1 addition & 1 deletion docs/update.py
Original file line number Diff line number Diff line change
@@ -6,6 +6,6 @@

length = len(hexdata)

div = next(filter(lambda x: not length % x, range(int(length ** .5), length + 1)))
div = next(filter(lambda x: not length % x, range(int(length ** .5), length)))

open("README.md", "w").write(open(Path(__file__).parent.resolve() / 'template.md').read().format(size = length // 2, hex = "\n".join(findall('.' * div, hexdata)), platform = get_platform(), empty_size = Path("a.out").stat().st_size))