File:  [UNIX Amiga Emulator] / uae / src / md-i386-gcc / rpt.h
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:10:00 2018 UTC (8 years, 3 months ago) by root
Branches: MAIN, BSchmidt
CVS tags: uae0826, uae0825, uae0824, uae0823, uae0822, HEAD
uae-0.8.22

/*
  * UAE - The Un*x Amiga Emulator
  *
  * Definitions for accessing cycle counters on a given machine, if possible.
  *
  * Copyright 1997, 1998 Bernd Schmidt
  */

typedef unsigned long frame_time_t;

static inline frame_time_t read_processor_time (void)
{
    frame_time_t foo;
    int dummy;
    /* Don't assume the assembler knows rdtsc */
    __asm__ __volatile__ (".byte 0x0f,0x31" : "=a" (foo), "=d" (dummy) :);
    return foo;
}

#define RPT_WORKS_OK 1

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.