Commit 6831a766 authored by Doug Nazar's avatar Doug Nazar

orctest: Print full float/double information in verbose mode

parent 232ab2b2
Pipeline #65079 passed with stage
in 2 minutes and 4 seconds
......@@ -550,14 +550,20 @@ print_array_val_float (OrcArray *array, int i, int j)
switch (array->element_size) {
case 4:
if (isnan(*(float *)ptr)) {
if (_orc_test_verbose) {
printf(" %12.5g [%08x]", *(float *)ptr, *(orc_uint32 *)ptr);
} else if (isnan(*(float *)ptr)) {
printf(" nan %08x", *(orc_uint32 *)ptr);
} else {
printf(" %12.5g", *(float *)ptr);
}
break;
case 8:
printf(" %12.5g", *(double *)ptr);
if (_orc_test_verbose) {
printf(" %12.5g [%016lx]", *(double *)ptr, *(orc_uint64 *)ptr);
} else {
printf(" %12.5g", *(double *)ptr);
}
break;
default:
printf(" ERROR");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment