37 #ifndef _LIBKERN_QUAD_H_
38 #define _LIBKERN_QUAD_H_
56 #include <sys/cdefs.h>
57 #include <sys/types.h>
58 #include <sys/limits.h>
59 #include <sys/syslimits.h>
75 #define H _QUAD_HIGHWORD
76 #define L _QUAD_LOWWORD
83 #define QUAD_BITS (sizeof(quad_t) * CHAR_BIT)
84 #define LONG_BITS (sizeof(long) * CHAR_BIT)
85 #define HALF_BITS (sizeof(long) * CHAR_BIT / 2)
96 #define HHALF(x) ((x) >> HALF_BITS)
97 #define LHALF(x) ((x) & ((1 << HALF_BITS) - 1))
98 #define LHUP(x) ((x) << HALF_BITS)
105 quad_t
__divdi3(quad_t a, quad_t b);
107 quad_t
__moddi3(quad_t a, quad_t b);
108 u_quad_t
__qdivrem(u_quad_t u, u_quad_t v, u_quad_t *rem);
109 u_quad_t
__udivdi3(u_quad_t a, u_quad_t b);
110 u_quad_t
__umoddi3(u_quad_t a, u_quad_t b);
u_quad_t __qdivrem(u_quad_t u, u_quad_t v, u_quad_t *rem)
quad_t __divdi3(quad_t a, quad_t b)
int __ucmpdi2(u_quad_t a, u_quad_t b)
quad_t __ashrdi3(quad_t, qshift_t)
int __cmpdi2(quad_t a, quad_t b)
quad_t __ashldi3(quad_t, qshift_t)
u_quad_t __udivdi3(u_quad_t a, u_quad_t b)
quad_t __moddi3(quad_t a, quad_t b)
u_quad_t __umoddi3(u_quad_t a, u_quad_t b)
quad_t __lshrdi3(quad_t, qshift_t)