diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2018-04-06 15:57:53 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-08 16:56:33 +0300 |
commit | 8a70e7cff55bd65cfd4399df878a16bbe1495782 (patch) | |
tree | be97054053d6ada3d073d33aa99ce824b4d52426 /mesonbuild/compilers/objcpp.py | |
parent | 23a7fe06e982fbe5d076153ef912cb3009eb1f3f (diff) | |
download | meson-8a70e7cff55bd65cfd4399df878a16bbe1495782.zip meson-8a70e7cff55bd65cfd4399df878a16bbe1495782.tar.gz meson-8a70e7cff55bd65cfd4399df878a16bbe1495782.tar.bz2 |
Remove arbitrary [-1024,1024] limit in cross_compute_int()
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.
Diffstat (limited to 'mesonbuild/compilers/objcpp.py')
0 files changed, 0 insertions, 0 deletions