add oversampler

This commit is contained in:
2024-05-24 13:28:31 +02:00
parent e4a4a661a0
commit 989dba5a6b
484 changed files with 313937 additions and 0 deletions

42
oversampling/WDL/timing.h Normal file
View File

@@ -0,0 +1,42 @@
/*
WDL - timing.h
this is based on some public domain Pentium RDTSC timing code from usenet in 1996.
To enable this, your app must #define TIMING, include timing.h, and call timingEnter(x)/timingLeave(x) a bunch
of times (where x is 0..63).
*/
#ifndef _TIMING_H_
#define _TIMING_H_
//#define TIMING
#include "wdltypes.h"
#if defined(TIMING)
#ifdef __cplusplus
extern "C" {
#endif
void _timingEnter(int);
void _timingLeave(int);
WDL_INT64 _timingQuery(int, WDL_INT64*);
#ifdef __cplusplus
}
#endif
#define timingLeave(x) _timingLeave(x)
#define timingEnter(x) _timingEnter(x)
#define timingQuery(x,y) _timingQuery(x,y)
#else
#define timingLeave(x)
#define timingEnter(x)
#define timingQuery(x,y) (0)
#endif
#define timingPrint()
#define timingInit()
#endif