Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | |
|
jamesr
2012/12/07 23:19:12
2012
ccameron
2012/12/08 00:21:15
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_UTIL_H_ | |
| 6 #define CC_UTIL_H_ | |
| 7 | |
| 8 namespace cc { | |
| 9 | |
| 10 template<typename T> | |
| 11 T RoundUp(T n, T mul) | |
| 12 { | |
| 13 return ((n + mul - 1) / mul) * mul; | |
| 14 } | |
| 15 | |
| 16 } // namespace cc | |
| 17 | |
| 18 #endif // CC_UTIL_H_ | |
| OLD | NEW |