]> git.lizzy.rs Git - rust.git/commit
Mark the {min,max}_value functions on integers #[inline].
authorHuon Wilson <dbau.pp+github@gmail.com>
Thu, 30 Apr 2015 22:56:13 +0000 (08:56 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Thu, 30 Apr 2015 23:15:10 +0000 (09:15 +1000)
commit7ba5f166b4643e7d64effda522a63d6710b5ccb3
tree85b7b84e8d6c8a6aae260e23e89c914aaed8764c
parent5c9636975cdc289e98ef8f33400969371c4ce1bf
Mark the {min,max}_value functions on integers #[inline].

These compile down to `mov $CONSTANT, register; ret`, but the lack of
`#[inline]` meant they have a full `call ...` when used from external
crates.
src/libcore/num/mod.rs