summaryrefslogtreecommitdiffstats
path: root/sys/libkern/quad.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2004-05-05 15:12:55 +0000
committerbde <bde@FreeBSD.org>2004-05-05 15:12:55 +0000
commit3a90e388ae830b9879a29cf9d4e5481c10770c0d (patch)
treeec61c9e68f79250ba9d2481c43526bbabec13917 /sys/libkern/quad.h
parent028a8161e544fcc76582e3fa4dd53d3cd8d92ede (diff)
downloadFreeBSD-src-3a90e388ae830b9879a29cf9d4e5481c10770c0d.zip
FreeBSD-src-3a90e388ae830b9879a29cf9d4e5481c10770c0d.tar.gz
Fixed some style bugs (unsorting of prototypes in previous commit, and
messes involving the idempotency guard).
Diffstat (limited to 'sys/libkern/quad.h')
-rw-r--r--sys/libkern/quad.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/libkern/quad.h b/sys/libkern/quad.h
index c6732ce..5100bef 100644
--- a/sys/libkern/quad.h
+++ b/sys/libkern/quad.h
@@ -34,8 +34,8 @@
* $FreeBSD$
*/
-#ifndef _LIBKERN_QUAD_H
-#define _LIBKERN_QUAD_H
+#ifndef _LIBKERN_QUAD_H_
+#define _LIBKERN_QUAD_H_
/*
* Quad arithmetic.
@@ -97,16 +97,16 @@ union uu {
#define LHALF(x) ((x) & ((1 << HALF_BITS) - 1))
#define LHUP(x) ((x) << HALF_BITS)
+typedef unsigned int qshift_t;
+
+quad_t __ashldi3(quad_t, qshift_t);
+quad_t __ashrdi3(quad_t, qshift_t);
quad_t __divdi3(quad_t a, quad_t b);
+quad_t __lshrdi3(quad_t, qshift_t);
quad_t __moddi3(quad_t a, quad_t b);
u_quad_t __qdivrem(u_quad_t u, u_quad_t v, u_quad_t *rem);
u_quad_t __udivdi3(u_quad_t a, u_quad_t b);
u_quad_t __umoddi3(u_quad_t a, u_quad_t b);
int __ucmpdi2(u_quad_t a, u_quad_t b);
-typedef unsigned int qshift_t;
-
-quad_t __ashldi3(quad_t, qshift_t);
-quad_t __ashrdi3(quad_t, qshift_t);
-quad_t __lshrdi3(quad_t, qshift_t);
-#endif /* _LIBKERN_QUAD_H */
+#endif /* !_LIBKERN_QUAD_H_ */
OpenPOWER on IntegriCloud