Mercurial > hg > qm-dsp
view maths/nan-inf.h @ 100:d7619173d43c mepd_new_params
Now includes latest changes from MEPD:
* TempoTrackV2::calculatebeats method - exposes "alpha" and "tightness" parameters
* TempoTrackV2::calculateBeatPeriod - user can specify an inputtempo (in BPM) and "constraintempo" (bool)
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 12 Dec 2012 15:10:38 +0000 |
parents | c313a173f4a9 |
children | 701233f8ed41 |
line wrap: on
line source
#ifndef NAN_INF_H #define NAN_INF_H #define ISNAN(x) (sizeof(x) == sizeof(double) ? ISNANd(x) : ISNANf(x)) static inline int ISNANf(float x) { return x != x; } static inline int ISNANd(double x) { return x != x; } #define ISINF(x) (sizeof(x) == sizeof(double) ? ISINFd(x) : ISINFf(x)) static inline int ISINFf(float x) { return !ISNANf(x) && ISNANf(x - x); } static inline int ISINFd(double x) { return !ISNANd(x) && ISNANd(x - x); } #endif