msp430: fix compilation of liballoc
This commit is contained in:
parent
8255671ac8
commit
f67b4e07d8
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ use vec::Vec;
|
||||||
|
|
||||||
const INITIAL_CAPACITY: usize = 7; // 2^3 - 1
|
const INITIAL_CAPACITY: usize = 7; // 2^3 - 1
|
||||||
const MINIMUM_CAPACITY: usize = 1; // 2 - 1
|
const MINIMUM_CAPACITY: usize = 1; // 2 - 1
|
||||||
|
#[cfg(target_pointer_width = "16")]
|
||||||
|
const MAXIMUM_ZST_CAPACITY: usize = 1 << (16 - 1); // Largest possible power of two
|
||||||
#[cfg(target_pointer_width = "32")]
|
#[cfg(target_pointer_width = "32")]
|
||||||
const MAXIMUM_ZST_CAPACITY: usize = 1 << (32 - 1); // Largest possible power of two
|
const MAXIMUM_ZST_CAPACITY: usize = 1 << (32 - 1); // Largest possible power of two
|
||||||
#[cfg(target_pointer_width = "64")]
|
#[cfg(target_pointer_width = "64")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue