Annotation of uae/src/md-i386-gcc/rpt.h, revision 1.1.1.2

1.1       root        1: /*
                      2:   * UAE - The Un*x Amiga Emulator
                      3:   *
                      4:   * Definitions for accessing cycle counters on a given machine, if possible.
                      5:   *
                      6:   * Copyright 1997, 1998 Bernd Schmidt
                      7:   */
                      8: 
                      9: typedef unsigned long frame_time_t;
                     10: 
                     11: static inline frame_time_t read_processor_time (void)
                     12: {
                     13:     frame_time_t foo;
1.1.1.2 ! root       14:     int dummy;
1.1       root       15:     /* Don't assume the assembler knows rdtsc */
1.1.1.2 ! root       16:     __asm__ __volatile__ (".byte 0x0f,0x31" : "=a" (foo), "=d" (dummy) :);
1.1       root       17:     return foo;
                     18: }

unix.superglobalmegacorp.com

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