Skip to content

drivers: multiply in u64 in sleep_ms - #1090

Merged
mattnite merged 1 commit into
ZigEmbeddedGroup:mainfrom
matpala:drivers/sleep-ms-u64-mul
Oct 14, 2026
Merged

mattnite merged 1 commit into
ZigEmbeddedGroup:mainfrom
matpala:drivers/sleep-ms-u64-mul

Conversation

@matpala

@matpala matpala commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #1088, which was merged before this change. With optimizations LLVM folds the shifts back into * 1000 on every target I checked, so a plain multiply is simpler and gives the same code. Details in #1088 (comment).

@mattnite
mattnite merged commit abd8895 into ZigEmbeddedGroup:main Oct 14, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants