Changeset 57


Ignore:
Timestamp:
Feb 21, 2008, 4:00:55 PM (11 years ago)
Author:
cameron
Message:

Fixes for x64

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Profiling/i386_timer.c

    r4 r57  
    33__inline__ unsigned long long int read_cycle_counter () {
    44  unsigned long long int ts;
    5 #ifdef SERIALIZE_RDTSC
    6   asm volatile("cpuid\n\t"
    7                "rdtsc\n" :
    8                "=A" (ts) :
    9                : "cc");
     5#ifndef OMIT_CPUID
     6  asm volatile("cpuid\n" ::: "eax", "ebx", "ecx", "edx");
    107#endif
    11 #ifndef SERIALIZE_RDTSC
    128  asm volatile("rdtsc\n" :
    139               "=A" (ts));
     10#ifndef OMIT_CPUID
     11  asm volatile("cpuid\n" ::: "eax", "ebx", "ecx", "edx");
    1412#endif
    1513  return(ts);
  • trunk/markup_stats.cxx

    r52 r57  
    2121#include "src/engine.h"
    2222
     23#ifndef REPEAT_RUNS
     24#define REPEAT_RUNS 1
     25#endif
    2326
    2427/* Internals */
     
    237240        char * filename = argv[1];
    238241
    239         for (int run = 0; run <100; run++) {
     242        for (int run = 0; run < REPEAT_RUNS; run++) {
    240243       
    241244        parser = Parser_Interface::ParserFactory(filename);
Note: See TracChangeset for help on using the changeset viewer.