Commit a6b512c8 authored by Claes Sjofors's avatar Claes Sjofors

Fast curve support for boolean datatype (refs #176)

parent a2686d9b
......@@ -315,6 +315,9 @@ void fastobject::scan()
case pwr_eType_Int8:
((pwr_tInt8 *)buffers[i])[current_index] = *(pwr_tInt8 *)attributes[i];
break;
case pwr_eType_Boolean:
((pwr_tBoolean *)buffers[i])[current_index] = *(pwr_tBoolean *)attributes[i];
break;
default:
;
}
......
......@@ -92,6 +92,7 @@ SObject pwrb:Class
! The datatypes that can be stored is
! - pwr_tFloat32, pwr_tFloat64
! - pwr_tInt32, pwr_tUInt32, pwr_tInt16, pwr_tUInt16, pwr_tInt8, pwr_tUInt8
! - pwr_tBoolean
!
! The time is stored as pwr_tFloat32.
!
......
......@@ -159,6 +159,7 @@ XttFast::XttFast( void *parent_ctx,
case pwr_eType_Float32:
case pwr_eType_Int32:
case pwr_eType_UInt32:
case pwr_eType_Boolean:
element_size[i] = 4;
break;
case pwr_eType_Float64:
......@@ -352,6 +353,9 @@ void XttFast::fast_scan( void *data)
case pwr_eType_UInt8:
fast->gcd->y_data[i][j] = ((pwr_tUInt8 *)tmp)[k];
break;
case pwr_eType_Boolean:
fast->gcd->y_data[i][j] = ((pwr_tBoolean *)tmp)[k];
break;
default:
;
}
......@@ -392,6 +396,9 @@ void XttFast::fast_scan( void *data)
case pwr_eType_UInt8:
fast->gcd->y_data[i][j] = ((pwr_tUInt8 *)tmp)[k];
break;
case pwr_eType_Boolean:
fast->gcd->y_data[i][j] = ((pwr_tBoolean *)tmp)[k];
break;
default: ;
}
}
......@@ -435,6 +442,9 @@ void XttFast::fast_scan( void *data)
case pwr_eType_UInt8:
fast->gcd->y_data[i][j] = ((pwr_tUInt8 *)tmp)[j];
break;
case pwr_eType_Boolean:
fast->gcd->y_data[i][j] = ((pwr_tBoolean *)tmp)[j];
break;
default: ;
}
}
......
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