library/src/utility/BP-NumberUtilities.cc
// Same as above except for double conversion.
Same as above except for double conversion.
Same as above except for double conversion .
size_t BP_DoubleToSizeT(double val)
{
	double iter = 0;
	size_t ret_iter = 0;
	if(iter >= val)
		return 0;
	for(; iter <= val;iter++)
	{
		if(iter >= (BP_GIGABYTE * 4 - 1))
			return 0;
		ret_iter++;
	}
	return ret_iter;
}
size_t BP_DoubleToSizeT ( double val ) { double iter = 0 ; size_t ret_iter = 0 ; if ( iter >= val ) return 0 ; for ( ; iter <= val ; iter ++ ) { if ( iter >= ( BP_GIGABYTE * 4 - 1 ) ) return 0 ; ret_iter ++ ; } return ret_iter ; }
Same as above except for double conversion.
Same as above except for double conversion .
// set the iterator // ensure the value is positive // only ever go as high as 4GB-1 // iterate the size_t // return the iter