diff --git a/FixMath2.h b/FixMath2.h new file mode 100644 index 000000000..48849d599 --- /dev/null +++ b/FixMath2.h @@ -0,0 +1,36 @@ +/* + * FixMath2.h + * + * Copyright 2012 Tim Barrass + * + * This file is part of Mozzi. + * + * Mozzi is licensed under a Creative Commons + * Attribution-NonCommercial-ShareAlike 4.0 International License. + * + */ + + +#ifndef FIXMATH2_H_ +#define FIXMATH2_H_ + +#include "IntegerType.h" + +#define SHIFTR(x,bits) (bits > 0 ? (x) >> (bits) : (x) << (-bits)) // shift right for positive shift numbers, and left for negative ones. + +template +class FixMath2 +{ + public: + + private: + // use of the IntegerType for that? +}; + + + + + + + +#endif