Skip to content

Fix up a significant typo #3

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

Merged
merged 1 commit into from
May 21, 2019
Merged

Conversation

antmak
Copy link
Contributor

@antmak antmak commented May 20, 2019

No description provided.

@cirosantilli
Copy link
Owner

cirosantilli commented May 21, 2019

Did you manage to observe the effects of builtin expect with those changes? If yes, what is you hardware precisely?

It's hard to say if those thing are typos or not since I forgot what I had in mind.

compiler-generated/gcc/interactive/builtin_expect_off_perf.c is likely typo because of indentation, but why the change in builtin_expect_perf.c ?

@antmak
Copy link
Contributor Author

antmak commented May 21, 2019

my motivation for this fix that unsigned x[N] has only 0-7 elements. The compiler complains using -Wall

Unfortunately I didn't manage to found any influence of builtin_expect yet. While I run only on x86 machine, I tried to fixate some values in srand(X) and compare them.

Maybe I need some other test, but I have not come up with another solution.

@cirosantilli cirosantilli merged commit b3369fd into cirosantilli:master May 21, 2019
@cirosantilli
Copy link
Owner

Woops, yes, out of bounds is likely not intentional :-)

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