projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30e5bb6
)
Add ROUND_DOWN macro.
author
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 26 Aug 2004 19:01:18 +0000
(19:01 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 26 Aug 2004 19:01:18 +0000
(19:01 +0000)
src/lib/lib.h
patch
|
blob
|
history
diff --git
a/src/lib/lib.h
b/src/lib/lib.h
index 2f788bea4de58e068695bc8cc03a9c3c7d390377..668f90430f953b81fc144e1f8024061f118a5cc4 100644
(file)
--- a/
src/lib/lib.h
+++ b/
src/lib/lib.h
@@
-6,6
+6,7
@@
#define ROUND_UP(X, STEP) (((X) + (STEP) - 1) / (STEP) * (STEP))
#define DIV_ROUND_UP(X, STEP) (((X) + (STEP) - 1) / (STEP))
+#define ROUND_DOWN(X, STEP) ((X) / (STEP) * (STEP))
void *memset (void *, int, size_t);
void *memcpy (void *, const void *, size_t);