rm unused reserve_vec from rt (done in libcore)
This commit is contained in:
parent
9ad8a1f465
commit
59bb9c2f1a
1 changed files with 0 additions and 19 deletions
|
|
@ -19,21 +19,6 @@ extern struct type_desc str_body_tydesc;
|
|||
|
||||
// Inline fn used regularly elsewhere.
|
||||
|
||||
static inline size_t
|
||||
next_power_of_two(size_t s)
|
||||
{
|
||||
size_t tmp = s - 1;
|
||||
tmp |= tmp >> 1;
|
||||
tmp |= tmp >> 2;
|
||||
tmp |= tmp >> 4;
|
||||
tmp |= tmp >> 8;
|
||||
tmp |= tmp >> 16;
|
||||
#ifdef _LP64
|
||||
tmp |= tmp >> 32;
|
||||
#endif
|
||||
return tmp + 1;
|
||||
}
|
||||
|
||||
// Rounds |size| to the nearest |alignment|. Invariant: |alignment| is a power
|
||||
// of two.
|
||||
template<typename T>
|
||||
|
|
@ -91,10 +76,6 @@ inline void reserve_vec_exact(rust_task* task, rust_vec_box** vpp,
|
|||
}
|
||||
}
|
||||
|
||||
inline void reserve_vec(rust_task* task, rust_vec_box** vpp, size_t size) {
|
||||
reserve_vec_exact(task, vpp, next_power_of_two(size));
|
||||
}
|
||||
|
||||
typedef rust_vec_box rust_str;
|
||||
|
||||
inline rust_str *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue