Sha256: 34a8e516de52a96c9b9a5d7d289320a8cacbae84e8ccd74e7c607cdf0c9266ed

Contents?: true

Size: 262 Bytes

Versions: 3

Compression:

Stored size: 262 Bytes

Contents

#include <stdio.h>
#include <sys/types.h>
#include "osfreq.c"

long long cpucycles_ia64cpuinfo(void)
{
  long long result;
  asm volatile("mov %0=ar.itc" : "=r"(result));
  return result;
}

long long cpucycles_ia64cpuinfo_persecond(void)
{
  return osfreq();
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_nacl-0.1.2 ext/ruby_nacl/NaCl/cpucycles/ia64cpuinfo.c
ruby_nacl-0.1.1 ext/ruby_nacl/NaCl/cpucycles/ia64cpuinfo.c
ruby_nacl-0.1.0 ext/ruby_nacl/NaCl/cpucycles/ia64cpuinfo.c