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

reverse_int #262

Merged
merged 4 commits into from
Aug 30, 2023
Merged

reverse_int #262

merged 4 commits into from
Aug 30, 2023

Conversation

MelindaFang-code
Copy link
Contributor

reverse the integer
e.g. 123 -> 321

Copy link
Owner

@sampsyo sampsyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super cool and compact idea! Here is one minor suggestion. And it would also be great to include #263 to this PR.

@@ -0,0 +1,31 @@

@main{
input: int = const 123;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is OK, but to make the benchmark a little more reusable, you might consider making the input a parameter. Here's an example:

# ARGS: 407
@main(input : int) {

That is, you can make input a parameter to @main and then give it a value like # ARGS: 123 for benchmark automation purposes.

@sampsyo
Copy link
Owner

sampsyo commented Aug 30, 2023

Hmm… it looks like this may have erroneously reformatted the whole bench.md file?

@MelindaFang-code
Copy link
Contributor Author

ooops it seems that it autoformats when I save the file. I have pushed a fix. @sampsyo

@sampsyo
Copy link
Owner

sampsyo commented Aug 30, 2023

Looks good; thanks!

@sampsyo sampsyo merged commit c8a6d32 into sampsyo:main Aug 30, 2023
5 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