Index: cc/util.h |
diff --git a/cc/util.h b/cc/util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fb8e7bd99df885142c525ba73f3a4dfb2b75366e |
--- /dev/null |
+++ b/cc/util.h |
@@ -0,0 +1,18 @@ |
+// Copyright 2011 The Chromium Authors. All rights reserved. |
jamesr
2012/12/07 23:19:12
2012
ccameron
2012/12/08 00:21:15
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CC_UTIL_H_ |
+#define CC_UTIL_H_ |
+ |
+namespace cc { |
+ |
+template<typename T> |
+T RoundUp(T n, T mul) |
+{ |
+ return ((n + mul - 1) / mul) * mul; |
+} |
+ |
+} // namespace cc |
+ |
+#endif // CC_UTIL_H_ |