version 1.13.2.3, 2012/09/17 13:44:22
|
version 1.13.2.5, 2012/09/17 14:01:34
|
Line 829 io_cmpVar(ait_val_t * __restrict a, ait_val_t * __rest
|
Line 829 io_cmpVar(ait_val_t * __restrict a, ait_val_t * __rest
|
{ |
{ |
intptr_t ret; |
intptr_t ret; |
|
|
if (!(ret = (a - b))) | if (!(ret = (b - a))) |
return ret; |
return ret; |
if ((ret = AIT_TYPE(a) - AIT_TYPE(b))) | if ((ret = AIT_TYPE(b) - AIT_TYPE(a))) |
return ret; |
return ret; |
if ((ret = AIT_LEN(a) - AIT_LEN(b))) | if ((ret = AIT_LEN(b) - AIT_LEN(a))) |
return ret; |
return ret; |
|
|
switch (AIT_TYPE(a)) { |
switch (AIT_TYPE(a)) { |
Line 847 io_cmpVar(ait_val_t * __restrict a, ait_val_t * __rest
|
Line 847 io_cmpVar(ait_val_t * __restrict a, ait_val_t * __rest
|
ret = memcmp(AIT_GET_DATA(a), AIT_GET_DATA(b), AIT_LEN(a)); |
ret = memcmp(AIT_GET_DATA(a), AIT_GET_DATA(b), AIT_LEN(a)); |
break; |
break; |
case ptr: |
case ptr: |
ret = AIT_ADDR(a) - AIT_ADDR(b); | ret = AIT_ADDR(b) - AIT_ADDR(a); |
break; |
break; |
default: |
default: |
ret = AIT_RAW(a) - AIT_RAW(b); | ret = AIT_RAW(b) - AIT_RAW(a); |
break; |
break; |
} |
} |
|
|