Skip to content

refactor: remove redundant shift 0 in generated code#57

Merged
jaypiper merged 1 commit intoOpenXiangShan:masterfrom
FurryAcetylCoA:elim-shift-0
Mar 30, 2025
Merged

refactor: remove redundant shift 0 in generated code#57
jaypiper merged 1 commit intoOpenXiangShan:masterfrom
FurryAcetylCoA:elim-shift-0

Conversation

@FurryAcetylCoA
Copy link
Copy Markdown
Contributor

Tested with make diff dutName={rocket|small-boom|large-boom}

I also want to recommend bumping to C++ 20 so we can use std::format instead. Which can help us get rid of those ugly c_str().
Or, since most format strings is now simplified to sth like "(%s(%s%s %s) %s)", we can also use + instead of format.

@jaypiper jaypiper merged commit d7a19c6 into OpenXiangShan:master Mar 30, 2025
@dzwduan
Copy link
Copy Markdown
Collaborator

dzwduan commented Mar 30, 2025

why not use fmt::printf instead?

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.

3 participants