Mercurial > hg > CbC > CbC_gcc
comparison libdecnumber/decNumber.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* Decimal number arithmetic module for the decNumber C Library. | 1 /* Decimal number arithmetic module for the decNumber C Library. |
2 Copyright (C) 2005-2017 Free Software Foundation, Inc. | 2 Copyright (C) 2005-2018 Free Software Foundation, Inc. |
3 Contributed by IBM Corporation. Author Mike Cowlishaw. | 3 Contributed by IBM Corporation. Author Mike Cowlishaw. |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify it under | 7 GCC is free software; you can redistribute it and/or modify it under |
6027 #endif | 6027 #endif |
6028 /* [following code does not require input rounding] */ | 6028 /* [following code does not require input rounding] */ |
6029 | 6029 |
6030 /* If total ordering then handle differing signs 'up front' */ | 6030 /* If total ordering then handle differing signs 'up front' */ |
6031 if (op==COMPTOTAL) { /* total ordering */ | 6031 if (op==COMPTOTAL) { /* total ordering */ |
6032 if (decNumberIsNegative(lhs) & !decNumberIsNegative(rhs)) { | 6032 if (decNumberIsNegative(lhs) && !decNumberIsNegative(rhs)) { |
6033 result=-1; | 6033 result=-1; |
6034 break; | 6034 break; |
6035 } | 6035 } |
6036 if (!decNumberIsNegative(lhs) & decNumberIsNegative(rhs)) { | 6036 if (!decNumberIsNegative(lhs) && decNumberIsNegative(rhs)) { |
6037 result=+1; | 6037 result=+1; |
6038 break; | 6038 break; |
6039 } | 6039 } |
6040 } | 6040 } |
6041 | 6041 |