diff options
| author | Peter Atashian <retep998@gmail.com> | 2015-12-02 21:03:21 -0500 |
|---|---|---|
| committer | Peter Atashian <retep998@gmail.com> | 2015-12-02 21:03:21 -0500 |
| commit | 098f4fb9c753fb7eb4723fd157401facd85afaa4 (patch) | |
| tree | 8c872b32dbc8c3b1844ef1e4589099bf479f3dba /src/liballoc_system/lib.rs | |
| parent | abfadfeee691f832b3b47ebd334ec119b0a8379d (diff) | |
| download | rust-098f4fb9c753fb7eb4723fd157401facd85afaa4.tar.gz rust-098f4fb9c753fb7eb4723fd157401facd85afaa4.zip | |
MIN_ALIGN is definitely 8 on 32-bit x86, at least on Windows.
Signed-off-by: Peter Atashian <retep998@gmail.com>
Diffstat (limited to 'src/liballoc_system/lib.rs')
| -rw-r--r-- | src/liballoc_system/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc_system/lib.rs b/src/liballoc_system/lib.rs index a0c0d7d0e94..7f2d362e5d9 100644 --- a/src/liballoc_system/lib.rs +++ b/src/liballoc_system/lib.rs @@ -29,13 +29,13 @@ extern crate libc; // The minimum alignment guaranteed by the architecture. This value is used to // add fast paths for low alignment values. In practice, the alignment is a // constant at the call site and the branch will be optimized out. -#[cfg(all(any(target_arch = "arm", +#[cfg(all(any(target_arch = "x86", + target_arch = "arm", target_arch = "mips", target_arch = "mipsel", target_arch = "powerpc")))] const MIN_ALIGN: usize = 8; -#[cfg(all(any(target_arch = "x86", - target_arch = "x86_64", +#[cfg(all(any(target_arch = "x86_64", target_arch = "aarch64")))] const MIN_ALIGN: usize = 16; |
