diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-31 03:53:32 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-31 03:53:32 +0000 |
commit | 7429c938827aa98bf3b02c4ac89510f4d28ef0b1 (patch) | |
tree | 6194cf5ca2bbd33136b86d19b8e4c0d25768bf78 /gcc/libgcc2.h | |
parent | 49f0f270673c4512c11f72a038b84c321ae5534a (diff) | |
download | gcc-7429c938827aa98bf3b02c4ac89510f4d28ef0b1.tar.gz |
* libgcc2.h (Wtype_MAX, Wtype_MIN): Define.
* libgcc2.c (__fixunssfSI, __fixunsdfSI, __fixunsxfSI): Use
Wtype_MIN instead of LONG_MIN.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39365 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcc2.h')
-rw-r--r-- | gcc/libgcc2.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/libgcc2.h b/gcc/libgcc2.h index c31a1462598..7a26e33ea0b 100644 --- a/gcc/libgcc2.h +++ b/gcc/libgcc2.h @@ -1,5 +1,5 @@ /* Header file for libgcc2.c. */ -/* Copyright (C) 2000 +/* Copyright (C) 2000, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -199,6 +199,9 @@ typedef int word_type __attribute__ ((mode (__word__))); #define __NDW(a,b) __ ## a ## hi ## b #endif +#define Wtype_MAX ((Wtype)(((UWtype)1 << (W_TYPE_SIZE - 1)) - 1)) +#define Wtype_MIN (- Wtype_MAX - 1) + #define __muldi3 __NDW(mul,3) #define __divdi3 __NDW(div,3) #define __udivdi3 __NDW(udiv,3) |