version 1.8, 2018/03/29 01:32:51 |
version 1.9, 2019/06/04 07:11:22 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/engine/cplx.c,v 1.7 2015/08/20 08:42:07 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/engine/cplx.c,v 1.8 2018/03/29 01:32:51 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "base.h" |
#include "base.h" |
|
|
if ( !a ) |
if ( !a ) |
*rp = *ip = 0; |
*rp = *ip = 0; |
#if defined(INTERVAL) |
#if defined(INTERVAL) |
else if ( NID(a) <= N_PRE_C ) { |
else if ( NID(a) < N_C ) { |
#else |
#else |
else if ( NID(a) <= N_B ) { |
else if ( NID(a) <= N_B ) { |
#endif |
#endif |
|
|
else if ( !b ) |
else if ( !b ) |
*c = a; |
*c = a; |
#if defined(INTERVAL) |
#if defined(INTERVAL) |
else if ( (NID(a) <= N_PRE_C) && (NID(b) <= N_PRE_C ) ) |
else if ( (NID(a) < N_C) && (NID(b) < N_C ) ) |
#else |
#else |
else if ( (NID(a) <= N_B) && (NID(b) <= N_B ) ) |
else if ( (NID(a) <= N_B) && (NID(b) <= N_B ) ) |
#endif |
#endif |
|
|
else if ( !b ) |
else if ( !b ) |
*c = a; |
*c = a; |
#if defined(INTERVAL) |
#if defined(INTERVAL) |
else if ( (NID(a) <= N_PRE_C) && (NID(b) <= N_PRE_C ) ) |
else if ( (NID(a) < N_C) && (NID(b) <= N_C ) ) |
#else |
#else |
else if ( (NID(a) <= N_B) && (NID(b) <= N_B ) ) |
else if ( (NID(a) <= N_B) && (NID(b) <= N_B ) ) |
#endif |
#endif |
|
|
if ( !a || !b ) |
if ( !a || !b ) |
*c = 0; |
*c = 0; |
#if defined(INTERVAL) |
#if defined(INTERVAL) |
else if ( (NID(a) <= N_PRE_C) && (NID(b) <= N_PRE_C ) ) |
else if ( (NID(a) < N_C) && (NID(b) < N_C ) ) |
#else |
#else |
else if ( (NID(a) <= N_B) && (NID(b) <= N_B ) ) |
else if ( (NID(a) <= N_B) && (NID(b) <= N_B ) ) |
#endif |
#endif |
|
|
else if ( !a ) |
else if ( !a ) |
*c = 0; |
*c = 0; |
#if defined(INTERVAL) |
#if defined(INTERVAL) |
else if ( (NID(a) <= N_PRE_C) && (NID(b) <= N_PRE_C ) ) |
else if ( (NID(a) < N_C) && (NID(b) < N_C ) ) |
#else |
#else |
else if ( (NID(a) <= N_B) && (NID(b) <= N_B ) ) |
else if ( (NID(a) <= N_B) && (NID(b) <= N_B ) ) |
#endif |
#endif |
|
|
if ( !a ) |
if ( !a ) |
*c = 0; |
*c = 0; |
#if defined(INTERVAL) |
#if defined(INTERVAL) |
else if ( NID(a) <= N_PRE_C ) |
else if ( NID(a) < N_C ) |
#else |
#else |
else if ( NID(a) <= N_B ) |
else if ( NID(a) <= N_B ) |
#endif |
#endif |
|
|
|
|
if ( !a ) { |
if ( !a ) { |
#if defined(INTERVAL) |
#if defined(INTERVAL) |
if ( !b || (NID(b)<=N_PRE_C) ) |
if ( !b || (NID(b)<N_C) ) |
#else |
#else |
if ( !b || (NID(b)<=N_B) ) |
if ( !b || (NID(b)<=N_B) ) |
#endif |
#endif |
|
|
return -1; |
return -1; |
} else if ( !b ) { |
} else if ( !b ) { |
#if defined(INTERVAL) |
#if defined(INTERVAL) |
if ( !a || (NID(a)<=N_PRE_C) ) |
if ( !a || (NID(a)<N_C) ) |
#else |
#else |
if ( !a || (NID(a)<=N_B) ) |
if ( !a || (NID(a)<=N_B) ) |
#endif |
#endif |