Page MenuHomeFreeBSD

D55557.id172848.diff
No OneTemporary

D55557.id172848.diff

diff --git a/sys/sys/_param.h b/sys/sys/_param.h
--- a/sys/sys/_param.h
+++ b/sys/sys/_param.h
@@ -19,7 +19,7 @@
#ifndef howmany
#define howmany(x, y) (((x)+((y)-1))/(y))
#endif
-#define rounddown(x, y) (((x)/(y))*(y))
+#define rounddown(x, y) ((x)-(x)%(y))
#define rounddown2(x, y) __align_down(x, y) /* if y is power of two */
#define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */
#define roundup2(x, y) __align_up(x, y) /* if y is powers of two */

File Metadata

Mime Type
text/plain
Expires
Tue, Apr 28, 12:55 PM (14 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29058280
Default Alt Text
D55557.id172848.diff (468 B)

Event Timeline