Minor and mostly immaterial bits

This commit is contained in:
Chris Cannam
2011-12-09 18:18:32 +00:00
parent ec85a7c8c8
commit 4ecb1fa6f1
7 changed files with 22 additions and 22 deletions

View File

@@ -12,6 +12,7 @@
COPYING included with this distribution for more information.
*/
#include "Thread.h"
#include <iostream>

View File

@@ -15,14 +15,15 @@
#ifndef _RUBBERBAND_THREAD_H_
#define _RUBBERBAND_THREAD_H_
#include <string>
#ifdef _WIN32
#include <windows.h>
#else /* !_WIN32 */
#include <pthread.h>
#endif /* !_WIN32 */
#include <string>
//#define DEBUG_THREAD 1
//#define DEBUG_MUTEX 1
//#define DEBUG_CONDITION 1
@@ -143,4 +144,5 @@ private:
}
#endif

View File

@@ -26,6 +26,13 @@ inline void c_phasor(T *real, T *imag, T phase)
{
//!!! IPP contains ippsSinCos_xxx in ippvm.h -- these are
//!!! fixed-accuracy, test and compare
#if defined __GNUC__
if (sizeof(T) == sizeof(float)) {
sincosf(phase, (float *)imag, (float *)real);
} else {
sincos(phase, (double *)imag, (double *)real);
}
#else
if (sizeof(T) == sizeof(float)) {
*real = cosf(phase);
*imag = sinf(phase);
@@ -33,6 +40,7 @@ inline void c_phasor(T *real, T *imag, T phase)
*real = cos(phase);
*imag = sin(phase);
}
#endif
}
template<typename T>

View File

@@ -125,4 +125,5 @@ extern void system_memorybarrier();
#endif
#endif