Loading...
Searching...
No Matches
Go to the documentation of this file.
25#ifndef __PFMLIB_PRIV_COMP_IA64_H__
26#define __PFMLIB_PRIV_COMP_IA64_H__
30#ifdef LIBPFM_USING_INTEL_ECC_COMPILER
32#define ia64_get_cpuid(regnum) __getIndReg(_IA64_REG_INDR_CPUID, (regnum))
33#define ia64_getf(d) __getf_exp(d)
35#elif defined(__GNUC__)
37static inline unsigned long
38ia64_get_cpuid (
unsigned long regnum)
42 asm (
"mov %0=cpuid[%r1]" :
"=r"(r) :
"rO"(regnum));
46static inline unsigned long
51 __asm__ (
"getf.exp %0=%1" :
"=r"(exp) :
"f"(d));
55#error "need to define a set of compiler-specific macros"