git-svn-id: svn://db.shs.com.ru/pip@532 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -31,8 +31,8 @@ public:
|
||||
typedef PIFixedPoint<Precision, Type> fp;
|
||||
PIFixedPoint(const Type &v = Type()) {val = fpv(v);}
|
||||
PIFixedPoint(const fp &v) {val = v.val;}
|
||||
PIFixedPoint(const float &v) {val = Precision == 0 ? Type(v) : Type(v * (2 << Precision-1));}
|
||||
PIFixedPoint(const double &v) {val = Precision == 0 ? Type(v) : Type(v * (2 << Precision-1));}
|
||||
PIFixedPoint(const float &v) {val = Precision == 0 ? Type(v) : Type(v * (2 << (Precision-1)));}
|
||||
PIFixedPoint(const double &v) {val = Precision == 0 ? Type(v) : Type(v * (2 << (Precision-1)));}
|
||||
// FixedPoint(const long double &v) {val = Precision == 0 ? Type(v) : Type(v * (2 << Precision-1));}
|
||||
|
||||
template<typename T>
|
||||
|
||||
Reference in New Issue
Block a user