along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#ifndef __ardour_cycles_h__
static inline cycles_t get_cycles (void)
{
- uint32_t long ret;
+ cycles_t ret;
rdtscll(ret);
- return ret;
+ return ret & 0xffffffff;
}
#elif defined(__powerpc__)
/* begin mach */
#elif defined(__APPLE__)
-#ifdef HAVE_WEAK_COREAUDIO
#include <CoreAudio/HostTime.h>
-#else // Due to MacTypes.h and libgnomecanvasmm Rect conflict
-typedef unsigned long long UInt64;
-
-extern UInt64
-AudioGetCurrentHostTime();
-
-extern UInt64
-AudioConvertHostTimeToNanos(UInt64 inHostTime);
-#endif
typedef UInt64 cycles_t;
static inline cycles_t get_cycles (void)