Classes | Macros | Functions | Variables
rgc_utils.c File Reference
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include "rgc_utils.h"
Include dependency graph for rgc_utils.c:

Go to the source code of this file.

Classes

union  time_stamp_t
 

Macros

#define __USE_RDTSC
 
#define BUF_SIZE   100
 
#define CPU_CLOCK   1700 /* 1.7GHz -> microsec */
 
#define rdtsc(tsc)
 

Functions

unsigned current_utime (void)
 
int debug_printf (char *fmt,...)
 
void hoge ()
 
void init_utils ()
 
int read_cpuinfo ()
 
static void reset_utime ()
 

Variables

static int cpu_clock
 
static time_stamp_t now
 
static time_stamp_t start
 

Macro Definition Documentation

#define __USE_RDTSC

Definition at line 27 of file rgc_utils.c.

#define BUF_SIZE   100
#define CPU_CLOCK   1700 /* 1.7GHz -> microsec */

Definition at line 29 of file rgc_utils.c.

#define rdtsc (   tsc)
Value:
__asm__ __volatile__("rdtsc"\
: "=a" (tsc.reg.eax), "=d" (tsc.reg.edx)\
)

Definition at line 68 of file rgc_utils.c.

Function Documentation

unsigned current_utime ( void  )

Definition at line 81 of file rgc_utils.c.

int debug_printf ( char *  fmt,
  ... 
)

Definition at line 11 of file rgc_utils.c.

void hoge ( )

Definition at line 25 of file rgc_utils.c.

void init_utils ( )

Definition at line 142 of file rgc_utils.c.

int read_cpuinfo ( )

Definition at line 33 of file rgc_utils.c.

static void reset_utime ( )
static

Definition at line 77 of file rgc_utils.c.

Variable Documentation

int cpu_clock
static

Definition at line 31 of file rgc_utils.c.

time_stamp_t now
static

Definition at line 75 of file rgc_utils.c.

time_stamp_t start
static

Definition at line 75 of file rgc_utils.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 6 2019 20:00:44