about summary refs log tree commit diff
path: root/sysdeps/wordsize-32/cmpdi2.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-05-21 00:22:34 +0000
committerUlrich Drepper <drepper@redhat.com>2002-05-21 00:22:34 +0000
commit509bd8e35ad842944074e43cd2cc22381ee13f5b (patch)
tree4a0d3e69275c6fca67d4d1bf6ba82cf88a79b9e2 /sysdeps/wordsize-32/cmpdi2.c
parent4c393b689f8a9c5e64048b4a4295abedcff6ef8c (diff)
downloadglibc-509bd8e35ad842944074e43cd2cc22381ee13f5b.tar.gz
glibc-509bd8e35ad842944074e43cd2cc22381ee13f5b.tar.xz
glibc-509bd8e35ad842944074e43cd2cc22381ee13f5b.zip
Update.
2002-05-20  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* sysdeps/powerpc/Makefile (sysdeps_routines): Use libgcc-compat
	instead of cmpdi2, shdi3, fixdfdi, fixsfdi in csu dir.
	(shared-only-routines): Likewise.
	* sysdeps/powerpc/libgcc-compat.c: New file.
	* sysdeps/wordsize-32/cmpdi2.c: Removed.
	* sysdeps/wordsize-32/fixdfdi.c: Removed.
	* sysdeps/wordsize-32/fixsfdi.c: Removed.
	* sysdeps/wordsize-32/shdi3.c: Removed.
Diffstat (limited to 'sysdeps/wordsize-32/cmpdi2.c')
-rw-r--r--sysdeps/wordsize-32/cmpdi2.c95
1 files changed, 0 insertions, 95 deletions
diff --git a/sysdeps/wordsize-32/cmpdi2.c b/sysdeps/wordsize-32/cmpdi2.c
deleted file mode 100644
index 720c66c460..0000000000
--- a/sysdeps/wordsize-32/cmpdi2.c
+++ /dev/null
@@ -1,95 +0,0 @@
-/* 64-bit integer comparison.
-   Copyright (C) 1989, 1992-2001, 2002 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
-
-#include <endian.h>
-#include <stdlib.h>
-#include <bits/wordsize.h>
-#include <shlib-compat.h>
-
-#if __WORDSIZE != 32
-# error This is for 32-bit targets only
-#endif
-
-#if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_2_6)
-
-typedef unsigned int UQItype	__attribute__ ((mode (QI)));
-typedef          int SItype	__attribute__ ((mode (SI)));
-typedef unsigned int USItype	__attribute__ ((mode (SI)));
-typedef          int DItype	__attribute__ ((mode (DI)));
-typedef unsigned int UDItype	__attribute__ ((mode (DI)));
-#define Wtype SItype
-#define HWtype SItype
-#define DWtype DItype
-#define UWtype USItype
-#define UHWtype USItype
-#define UDWtype UDItype
-#define W_TYPE_SIZE 32
-
-#include <stdlib/longlong.h>
-
-#if __BYTE_ORDER == __BIG_ENDIAN
-struct DWstruct { Wtype high, low;};
-#elif __BYTE_ORDER == __LITTLE_ENDIAN
-struct DWstruct { Wtype low, high;};
-#else
-#error Unhandled endianity
-#endif
-typedef union { struct DWstruct s; DWtype ll; } DWunion;
-
-
-Wtype
-___cmpdi2 (DWtype a, DWtype b)
-{
-  DWunion au, bu;
-
-  au.ll = a, bu.ll = b;
-
-  if (au.s.high < bu.s.high)
-    return 0;
-  else if (au.s.high > bu.s.high)
-    return 2;
-  if ((UWtype) au.s.low < (UWtype) bu.s.low)
-    return 0;
-  else if ((UWtype) au.s.low > (UWtype) bu.s.low)
-    return 2;
-  return 1;
-}
-symbol_version (___cmpdi2, __cmpdi2, GLIBC_2.0);
-
-
-Wtype
-___ucmpdi2 (DWtype a, DWtype b)
-{
-  DWunion au, bu;
-
-  au.ll = a, bu.ll = b;
-
-  if ((UWtype) au.s.high < (UWtype) bu.s.high)
-    return 0;
-  else if ((UWtype) au.s.high > (UWtype) bu.s.high)
-    return 2;
-  if ((UWtype) au.s.low < (UWtype) bu.s.low)
-    return 0;
-  else if ((UWtype) au.s.low > (UWtype) bu.s.low)
-    return 2;
-  return 1;
-}
-symbol_version (___ucmpdi2, __ucmpdi2, GLIBC_2.0);
-
-#endif