Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115913109
D41767.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
952 B
Referenced Files
None
Subscribers
None
D41767.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/kernel.h b/sys/compat/linuxkpi/common/include/linux/kernel.h
--- a/sys/compat/linuxkpi/common/include/linux/kernel.h
+++ b/sys/compat/linuxkpi/common/include/linux/kernel.h
@@ -623,12 +623,6 @@
return ((q * multiplier) + ((r * multiplier) / divisor));
}
-static inline int64_t
-abs64(int64_t x)
-{
- return (x < 0 ? -x : x);
-}
-
typedef struct linux_ratelimit {
struct timeval lasttime;
int counter;
diff --git a/sys/sys/libkern.h b/sys/sys/libkern.h
--- a/sys/sys/libkern.h
+++ b/sys/sys/libkern.h
@@ -113,6 +113,7 @@
static __inline off_t omin(off_t a, off_t b) { return (a < b ? a : b); }
static __inline int abs(int a) { return (a < 0 ? -a : a); }
static __inline long labs(long a) { return (a < 0 ? -a : a); }
+static __inline int64_t abs64(int64_t a) { return (a < 0 ? -a : a); }
static __inline quad_t qabs(quad_t a) { return (a < 0 ? -a : a); }
#ifndef RANDOM_FENESTRASX
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 8:17 AM (11 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17877449
Default Alt Text
D41767.diff (952 B)
Attached To
Mode
D41767: kern: Globally define abs64
Attached
Detach File
Event Timeline
Log In to Comment