Removed code which is no longer necessary.
parent
19d93c8b17
commit
f2ee79946f
|
@ -52,27 +52,6 @@ double Channel::window_lut[Channel::SINC_SAMPLES + 1];
|
||||||
static const double M_PI = 3.14159265358979323846;
|
static const double M_PI = 3.14159265358979323846;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Code from http://hbfs.wordpress.com/2008/08/05/branchless-equivalents-of-simple-functions/
|
|
||||||
inline int32_t sex(int32_t x)
|
|
||||||
{
|
|
||||||
union
|
|
||||||
{
|
|
||||||
// let us suppose long is twice as wide as int
|
|
||||||
int64_t w;
|
|
||||||
|
|
||||||
// should be hi,lo on a big endian machine
|
|
||||||
struct { int32_t lo, hi; } s;
|
|
||||||
} z;
|
|
||||||
z.w = x;
|
|
||||||
|
|
||||||
return z.s.hi;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline uint32_t abs(int32_t x)
|
|
||||||
{
|
|
||||||
return (x ^ sex(x)) - sex(x);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Code from http://learningcppisfun.blogspot.com/2010/04/comparing-floating-point-numbers.html
|
// Code from http://learningcppisfun.blogspot.com/2010/04/comparing-floating-point-numbers.html
|
||||||
template<typename T> inline bool fEqual(T x, T y, int N = 1)
|
template<typename T> inline bool fEqual(T x, T y, int N = 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue