diff options
Diffstat (limited to 'sys/lib/libkern/lshrti3.c')
-rw-r--r-- | sys/lib/libkern/lshrti3.c | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/sys/lib/libkern/lshrti3.c b/sys/lib/libkern/lshrti3.c index 1e1009f142a..82fa63ceca6 100644 --- a/sys/lib/libkern/lshrti3.c +++ b/sys/lib/libkern/lshrti3.c @@ -12,42 +12,12 @@ * ===----------------------------------------------------------------------=== */ +#include "crt_glue.h" + /* Returns: logical a >> b */ /* Precondition: 0 <= b < bits_in_tword */ -#include <sys/limits.h> -#include <sys/endian.h> - -typedef int si_int; -typedef unsigned int su_int; -typedef long long di_int; -typedef unsigned long long du_int; -typedef int ti_int __attribute__ ((mode (TI))); -typedef int tu_int __attribute__ ((mode (TI))); - -#if BYTE_ORDER == LITTLE_ENDIAN -#define _YUGA_LITTLE_ENDIAN 0 -#else -#define _YUGA_LITTLE_ENDIAN 1 -#endif - -typedef union -{ - tu_int all; - struct - { -#if _YUGA_LITTLE_ENDIAN - du_int low; - du_int high; -#else - du_int high; - du_int low; -#endif /* _YUGA_LITTLE_ENDIAN */ - }s; -} utwords; - - ti_int __lshrti3(ti_int a, si_int b) { |