Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144603361
D52080.1775690676.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
483 B
Referenced Files
None
Subscribers
None
D52080.1775690676.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/math64.h b/sys/compat/linuxkpi/common/include/linux/math64.h
--- a/sys/compat/linuxkpi/common/include/linux/math64.h
+++ b/sys/compat/linuxkpi/common/include/linux/math64.h
@@ -98,6 +98,12 @@
return ((dividend + divisor - 1) / divisor);
}
+static inline uint64_t
+roundup_u64(uint64_t x1, uint32_t x2)
+{
+ return (div_u64(x1 + x2 - 1, x2) * x2);
+}
+
#define DIV64_U64_ROUND_UP(...) \
div64_u64_round_up(__VA_ARGS__)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 11:24 PM (5 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28304927
Default Alt Text
D52080.1775690676.diff (483 B)
Attached To
Mode
D52080: LinuxKPI: maths64: implement roundup_u64()
Attached
Detach File
Event Timeline
Log In to Comment