aboutsummaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-01-31 03:53:32 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2001-01-31 03:53:32 +0000
commit5d0e648684ed1f9d4d24bf1ba2b98a78e183256a (patch)
tree6194cf5ca2bbd33136b86d19b8e4c0d25768bf78 /gcc/libgcc2.c
parentb2321b269c12e01be5fd2aa288994b0cac30b720 (diff)
downloadgcc-5d0e648684ed1f9d4d24bf1ba2b98a78e183256a.zip
gcc-5d0e648684ed1f9d4d24bf1ba2b98a78e183256a.tar.gz
gcc-5d0e648684ed1f9d4d24bf1ba2b98a78e183256a.tar.bz2
libgcc2.h (Wtype_MAX, Wtype_MIN): Define.
* libgcc2.h (Wtype_MAX, Wtype_MIN): Define. * libgcc2.c (__fixunssfSI, __fixunsdfSI, __fixunsxfSI): Use Wtype_MIN instead of LONG_MIN. From-SVN: r39365
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index 03636eb..34b4ccc 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -1,7 +1,7 @@
/* More subroutines needed by GCC output code on some machines. */
/* Compile this one with gcc. */
-/* Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
- 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+ 2000, 2001 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -1145,8 +1145,8 @@ __floatdisf (DWtype u)
UWtype
__fixunsxfSI (XFtype a)
{
- if (a >= - (DFtype) LONG_MIN)
- return (Wtype) (a + LONG_MIN) - LONG_MIN;
+ if (a >= - (DFtype) Wtype_MIN)
+ return (Wtype) (a + Wtype_MIN) - Wtype_MIN;
return (Wtype) a;
}
#endif
@@ -1167,8 +1167,8 @@ __fixunsxfSI (XFtype a)
UWtype
__fixunsdfSI (DFtype a)
{
- if (a >= - (DFtype) LONG_MIN)
- return (Wtype) (a + LONG_MIN) - LONG_MIN;
+ if (a >= - (DFtype) Wtype_MIN)
+ return (Wtype) (a + Wtype_MIN) - Wtype_MIN;
return (Wtype) a;
}
#endif
@@ -1189,8 +1189,8 @@ __fixunsdfSI (DFtype a)
UWtype
__fixunssfSI (SFtype a)
{
- if (a >= - (SFtype) LONG_MIN)
- return (Wtype) (a + LONG_MIN) - LONG_MIN;
+ if (a >= - (SFtype) Wtype_MIN)
+ return (Wtype) (a + Wtype_MIN) - Wtype_MIN;
return (Wtype) a;
}
#endif