aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/objcpp.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2018-04-06 15:57:53 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2018-04-08 16:56:33 +0300
commit8a70e7cff55bd65cfd4399df878a16bbe1495782 (patch)
treebe97054053d6ada3d073d33aa99ce824b4d52426 /mesonbuild/compilers/objcpp.py
parent23a7fe06e982fbe5d076153ef912cb3009eb1f3f (diff)
downloadmeson-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