mmlr + bonefish + axeld:
* Fixed build: round_up() has been renamed to key_align(). * Whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26532 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -292,7 +292,8 @@ bplustree_header::IsValidLink(off_t link)
|
|||||||
inline uint16 *
|
inline uint16 *
|
||||||
bplustree_node::KeyLengths() const
|
bplustree_node::KeyLengths() const
|
||||||
{
|
{
|
||||||
return (uint16 *)(((char *)this) + round_up(sizeof(bplustree_node) + AllKeyLength()));
|
return (uint16 *)(((char *)this)
|
||||||
|
+ key_align(sizeof(bplustree_node) + AllKeyLength()));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline off_t *
|
inline off_t *
|
||||||
@@ -310,7 +311,8 @@ bplustree_node::Keys() const
|
|||||||
inline int32
|
inline int32
|
||||||
bplustree_node::Used() const
|
bplustree_node::Used() const
|
||||||
{
|
{
|
||||||
return round_up(sizeof(bplustree_node) + AllKeyLength()) + NumKeys() * (sizeof(uint16) + sizeof(off_t));
|
return key_align(sizeof(bplustree_node) + AllKeyLength())
|
||||||
|
+ NumKeys() * (sizeof(uint16) + sizeof(off_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool
|
inline bool
|
||||||
|
|||||||
Reference in New Issue
Block a user