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

Remove arbitrary [-1024,1024] limit in cross_compute_int() #3365

Merged
merged 1 commit into from Apr 8, 2018

Conversation

xclaesse
Copy link
Member

@xclaesse xclaesse commented Apr 6, 2018

Copy the algorithm used by autoconf.

It computes the upper and lower limits by starting at [-1,1] and
multiply by 2 at each iteration. This is even faster for small numbers
(the common case), for example it finds value 0 in just 2 compilations
where old algorithm would check for 1024, 512, ..., 0.

@ignatenkobrain
Copy link
Member

Flake8 detected 22 issues on 8005591
Visit https://sideci.com/gh/19784232/pull_requests/3365 to review the issues.

@xclaesse xclaesse force-pushed the cross-compute-int branch 2 times, most recently from 0c176c9 to 375f178 Compare April 6, 2018 20:23
Copy the algorithm used by autoconf.

It computes the upper and lower limits by starting at [-1,1] and
multiply by 2 at each iteration. This is even faster for small numbers
(the common case), for example it finds value 0 in just 2 compilations
where old algorithm would check for 1024, 512, ..., 0.
@jpakkane jpakkane merged commit 8a70e7c into mesonbuild:master Apr 8, 2018
@xclaesse xclaesse deleted the cross-compute-int branch April 8, 2018 17:13
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.

None yet

3 participants