#ifdef HAVE_CONFIG_H # include "config.h" #endif #include int PLATON_FUNC(is64bit)(void) { #if defined(__sparc__) return -1; #else int iedx = 0; asm volatile ("movl $0x80000001, %%eax\n" "cpuid\n" : "=d"(iedx) : /* No Inputs */ : "eax", "ecx" ); if (iedx & (1 << 29)) { return 1; } return 0; #endif } /* Modeline for ViM {{{ * vim: set ts=4: * vim600: fdm=marker fdl=0 fdc=3: * }}} */