Skip to content

Commit

Permalink
Changed math_base.h/inl to utf-8 format.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenliang committed May 26, 2011
1 parent 0f9cc8c commit 894fc39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion util/math_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace util

inline bool IsPowerOfTwo(int n);

// align ±ØÐëÊÇ 2 µÄÃÝ
// align 必须是 2 的幂
inline unsigned int RoundUp(unsigned int n, unsigned int align);

template <class T1, class T2, class T3>
Expand Down
2 changes: 1 addition & 1 deletion util/math_base.inl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inline bool IsPowerOfTwo(int n)
return (n > 0) ? (!(n & (n - 1))) : false;
}

// align ±ØÐëÊÇ 2 µÄÃÝ
// align 必须是 2 的幂
inline unsigned int RoundUp(unsigned int n, unsigned int align)
{
assert(IsPowerOfTwo(align));
Expand Down

0 comments on commit 894fc39

Please sign in to comment.