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

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;
        !            14:     /* Don't assume the assembler knows rdtsc */
        !            15:     __asm__ __volatile__ (".byte 0x0f,0x31" : "=a" (foo) :);
        !            16:     return foo;
        !            17: }

unix.superglobalmegacorp.com

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