Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154272542
D55557.id172848.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
468 B
Referenced Files
None
Subscribers
None
D55557.id172848.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D55557: param: Refactor rounddown
Attached
Detach File
Event Timeline
Log In to Comment