about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-03-20 07:15:14 +0800
committerGitHub <noreply@github.com>2018-03-20 07:15:14 +0800
commit5d5f5a08b8d93d63e360bf409c9463e6282a38c6 (patch)
treec04ea1754fd75a93c8467498b62c131a83e9feb2 /src/rustllvm/PassWrapper.cpp
parentf32f810e6ecde94e60baf0f11a38dc12ebee7453 (diff)
parentbf101a5759fd0ddab7c9cbb1dc93d22d35f54722 (diff)
downloadrust-5d5f5a08b8d93d63e360bf409c9463e6282a38c6.tar.gz
rust-5d5f5a08b8d93d63e360bf409c9463e6282a38c6.zip
Rollup merge of #48810 - Phlosioneer:32463-impl-integer-for-wrapping, r=dtolnay
Implement Integer methods for Wrapping

Wrapping<T> now implements:

count_ones, count_zeros, leading_zeros,
trailing_zeros, rotate_left, rotate_right, swap_bytes, from_be,
from_le, to_be, to_le, and pow

where T is:

u8, u16, u32, u64, usize, i8, i16, i32, i64, or isize.

Docs were written for all these methods, as well as examples. The
examples mirror the ones on u8, u16, etc... for consistency.

Closes #32463
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions