#ifndef _BBCUTIL_H #define _BBCUTIL_H #include namespace BBC { /* extern "C" _BBCExport double fround(double n, unsigned d) { return floor(n * pow((double)10.,(int) d) + .5) / pow((double)10.,(int) d); } extern "C" _BBCExport int iround(double x) { return (int)floor(x + 0.5); } extern "C" _BBCExport unsigned int getUpperPowerOfTwo(unsigned int powerOfTwo) { unsigned int icount = 0; unsigned int depth = 1; while (icount < powerOfTwo) { depth = depth << 1; icount++; } return depth; } */ } #endif