This commit is contained in:
Christophe De Wagter
2011-04-08 16:05:49 +02:00
parent a04935bee1
commit e86f5bae52
+1
View File
@@ -182,6 +182,7 @@ struct Int64Vect3 {
};
// Real (floating point) -> Binary Fixed Point (int)
#define BFP_OF_REAL(_vr, _frac) ((_vr)*(1<<(_frac)))
#define FLOAT_OF_BFP(_vbfp, _frac) ((float)(_vbfp)/(1<<(_frac)))
#define RATE_BFP_OF_REAL(_af) BFP_OF_REAL((_af), INT32_RATE_FRAC)