rust/src/etc
Andrea Canciani aa77f39ccf Improve the range comparison
As mentioned in #29734, the range comparison closure can be improved.

The LLVM IR and the assembly from the new version are much simpler and
unfortunately we cannot rely on the compiler to optimise this much, as
it would need to know that `lo <= hi`.

Besides from simpler code, there might also be a performance
advantage, although it is unlikely to appear on benchmarks, as we are
doing a binary search, which should always involve few comparisons.

The code is available on the playpen for ease of comparison:
http://is.gd/4raMmH
2016-01-04 17:51:12 +01:00
..
mingw-fix-include Strip trailing whitespace 2015-03-15 11:25:43 -07:00
platform-intrinsics Add a comment to explain the #[inline(never)] annotation 2015-09-12 17:05:29 +02:00
test-float-parse typos: fix a grabbag of typos all over the place 2015-10-08 19:49:31 +01:00
third-party Strip all leading/trailing newlines 2015-03-15 09:08:21 -07:00
adb_run_wrapper.sh Add one more depth on android test directory for multiple targets 2015-02-10 21:53:31 +09:00
apple-darwin.supp update valgrind suppressions 2015-12-25 15:46:36 -05:00
check-binaries.py add shebang to scripts that have execute bit set 2014-05-12 19:52:29 -07:00
check-sanitycheck.py Fix platform detection 2015-06-01 20:50:35 +03:00
check-summary.py etc: py3 compat for check-summary.py 2015-05-24 05:12:40 -07:00
cmathconsts.c Added more scripts to tidy check 2014-02-17 10:36:47 -06:00
CONFIGS.md distinction between official and community plugins 2015-04-29 18:53:36 +02:00
ctags.rust Update the ctags rules and targets. 2015-07-30 06:35:42 +10:00
debugger_pretty_printers_common.py fix pretty printers to handle new Vec 2015-07-17 10:43:58 -07:00
dec2flt_table.py Script for generating the powers-of-ten tables necessary for correct and 2015-08-08 17:15:25 +02:00
errorck.py Add comments. 2015-07-12 21:19:19 -05:00
featureck.py Rename #[deprecated] to #[rustc_deprecated] 2015-11-20 16:11:20 +03:00
gdb_load_rust_pretty_printers.py debuginfo: Add a rust-gdb shell script that will start GDB with Rust pretty printers enabled. 2014-12-30 17:26:13 +01:00
gdb_rust_pretty_printing.py debuginfo: Create common debugger pretty printer module. 2015-05-30 20:06:08 +02:00
generate-deriving-span-tests.py Remove #[derive(Show)] 2015-10-18 19:12:09 +03:00
generate-keyword-tests.py Fix PEP8 for generate-keyword-tests 2015-01-27 01:26:03 -08:00
get-snapshot.py Fix PEP8 in snapshot.py 2015-01-27 01:26:02 -08:00
htmldocck.py Improve htmldocck.py error messages 2015-12-10 17:34:54 +01:00
indenter Port indenter to python 2015-01-16 08:49:54 -08:00
latest-unix-snaps.py Fix PEP8 for latest-unix-snaps.py 2015-01-27 01:26:03 -08:00
libc.c Add the other S_I(RWX)(GRP/OTH) for posix creat 2015-03-24 03:25:48 -07:00
licenseck.py Clean up tidy scripts, coverage, performance 2015-02-05 14:37:16 -08:00
lldb_batchmode.py Fix PEP8 in lldb_batchmode.py 2015-01-27 01:25:54 -08:00
lldb_rust_formatters.py debuginfo: Create common debugger pretty printer module. 2015-05-30 20:06:08 +02:00
local_stage0.sh bitrig integration 2015-02-11 14:49:06 -08:00
make-snapshot.py add shebang to scripts that have execute bit set 2014-05-12 19:52:29 -07:00
make-win-dist.py Make sure rsbegin.o and rsend.o get packaged with target lib artifacts. 2015-11-07 17:56:55 -08:00
maketest.py Better support for --llvm-root. 2015-12-13 15:05:43 -06:00
mirror-all-snapshots.py Fix PEP8 in mirror-all-snapshots 2015-01-27 01:26:03 -08:00
mklldef.py mk: Generate a .def file for rustc_llvm on MSVC 2015-05-19 10:53:07 -07:00
mklldeps.py Better support for --llvm-root. 2015-12-13 15:05:43 -06:00
regex-match-tests.py librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
rust-gdb debuginfo: Add a rust-gdb shell script that will start GDB with Rust pretty printers enabled. 2014-12-30 17:26:13 +01:00
rust-lldb rustc: Start "stabilizing" some flags 2014-12-19 11:38:24 -08:00
snapshot.py Add netbsd amd64 support 2015-07-01 19:09:14 -07:00
sugarise-doc-comments.py Fix PEP8 in sugarise-doc-comments 2015-01-27 01:26:02 -08:00
tidy.py std: Migrate to the new libc 2015-11-09 22:55:50 -08:00
unicode.py Improve the range comparison 2016-01-04 17:51:12 +01:00
x86.supp update valgrind suppressions 2015-12-25 15:46:36 -05:00
ziggurat_tables.py std: Move rand to librand. 2014-03-12 11:31:05 +11:00