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

◆ __USE_RDTSC

#define __USE_RDTSC

Definition at line 27 of file rgc_utils.c.

◆ BUF_SIZE

#define BUF_SIZE   100

◆ CPU_CLOCK

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

Definition at line 29 of file rgc_utils.c.

◆ rdtsc

#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

◆ current_utime()

unsigned current_utime ( void  )

Definition at line 81 of file rgc_utils.c.

◆ debug_printf()

int debug_printf ( char *  fmt,
  ... 
)

Definition at line 11 of file rgc_utils.c.

◆ hoge()

void hoge ( )

Definition at line 25 of file rgc_utils.c.

◆ init_utils()

void init_utils ( )

Definition at line 142 of file rgc_utils.c.

◆ read_cpuinfo()

int read_cpuinfo ( )

Definition at line 33 of file rgc_utils.c.

◆ reset_utime()

static void reset_utime ( )
static

Definition at line 77 of file rgc_utils.c.

Variable Documentation

◆ cpu_clock

int cpu_clock
static

Definition at line 31 of file rgc_utils.c.

◆ now

time_stamp_t now
static

Definition at line 75 of file rgc_utils.c.

◆ start

time_stamp_t start
static

Definition at line 75 of file rgc_utils.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Mon Feb 28 2022 22:18:28