diff --git a/plugins/LadspaEffect/calf/src/calf/fixed_point.h b/plugins/LadspaEffect/calf/src/calf/fixed_point.h index 44e767e4b..8803cd179 100644 --- a/plugins/LadspaEffect/calf/src/calf/fixed_point.h +++ b/plugins/LadspaEffect/calf/src/calf/fixed_point.h @@ -37,7 +37,7 @@ inline T shr(T v, int bits = 1) { template class fixed_point { T value; - enum { IntBits = (sizeof(T)/8) - FracBits }; + enum { IntBits = (sizeof(T)*8) - FracBits }; public: /// default constructor, does not initialize the value, just like - say - float doesn't @@ -210,13 +210,13 @@ public: template inline U lerp_by_fract_int(U v1, U v2) const { int fp = fpart(); - assert ( fp >=0 && fp <= (1<=0 && fp <= (1ULL< - inline U lerp_table_lookup_int(U data[(unsigned int)(1<(data[pos], data[pos+1]); } @@ -224,19 +224,19 @@ public: /// Untested... I've started it to get a sin/cos readout for rotaryorgan, but decided to use table-less solution instead /// Do not assume it works, because it most probably doesn't template - inline U lerp_table_lookup_int_shift(U data[(unsigned int)(1<(data[pos], data[pos+1]); } template - inline U lerp_table_lookup_float(U data[(unsigned int)(1< - inline U lerp_table_lookup_float_mask(U data[(unsigned int)(1<