mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 20:29:39 +08:00
Xing Xue: port to IBM XLC++/AIX.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@188396 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1615,13 +1615,13 @@ private:
|
||||
|
||||
template <size_type __a> static
|
||||
_LIBCPP_INLINE_VISIBILITY
|
||||
size_type __align(size_type __s) _NOEXCEPT
|
||||
size_type __align_it(size_type __s) _NOEXCEPT
|
||||
{return __s + (__a-1) & ~(__a-1);}
|
||||
enum {__alignment = 16};
|
||||
static _LIBCPP_INLINE_VISIBILITY
|
||||
size_type __recommend(size_type __s) _NOEXCEPT
|
||||
{return (__s < __min_cap ? __min_cap :
|
||||
__align<sizeof(value_type) < __alignment ?
|
||||
__align_it<sizeof(value_type) < __alignment ?
|
||||
__alignment/sizeof(value_type) : 1 > (__s+1)) - 1;}
|
||||
|
||||
void __init(const value_type* __s, size_type __sz, size_type __reserve);
|
||||
|
||||
Reference in New Issue
Block a user