Mercurial > hg > CbC > CbC_gcc
comparison gcc/fixed-value.c @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
56:3c8a44c06a95 | 63:b7f97abdc517 |
---|---|
21 #include "system.h" | 21 #include "system.h" |
22 #include "coretypes.h" | 22 #include "coretypes.h" |
23 #include "tm.h" | 23 #include "tm.h" |
24 #include "tree.h" | 24 #include "tree.h" |
25 #include "toplev.h" | 25 #include "toplev.h" |
26 #include "fixed-value.h" | |
27 | 26 |
28 /* Compare two fixed objects for bitwise identity. */ | 27 /* Compare two fixed objects for bitwise identity. */ |
29 | 28 |
30 bool | 29 bool |
31 fixed_identical (const FIXED_VALUE_TYPE *a, const FIXED_VALUE_TYPE *b) | 30 fixed_identical (const FIXED_VALUE_TYPE *a, const FIXED_VALUE_TYPE *b) |
66 | 65 |
67 real_2expN (&max_value, GET_MODE_IBIT (mode), mode); | 66 real_2expN (&max_value, GET_MODE_IBIT (mode), mode); |
68 real_2expN (&epsilon_value, -GET_MODE_FBIT (mode), mode); | 67 real_2expN (&epsilon_value, -GET_MODE_FBIT (mode), mode); |
69 | 68 |
70 if (SIGNED_FIXED_POINT_MODE_P (mode)) | 69 if (SIGNED_FIXED_POINT_MODE_P (mode)) |
71 min_value = REAL_VALUE_NEGATE (max_value); | 70 min_value = real_value_negate (&max_value); |
72 else | 71 else |
73 real_from_string (&min_value, "0.0"); | 72 real_from_string (&min_value, "0.0"); |
74 | 73 |
75 if (real_compare (LT_EXPR, real_value, &min_value)) | 74 if (real_compare (LT_EXPR, real_value, &min_value)) |
76 return FIXED_UNDERFLOW; | 75 return FIXED_UNDERFLOW; |