/** * 64-bit CPU detection * * @file platon/cpu/is64bit.h * @author tyranid * @url http://stackoverflow.com/questions/1917761/how-do-you-detect-the-cpu-architecture * @version \$Platon: libplaton/platon/cpu/is64bit.h,v 1.1 2010-04-24 14:03:15 nepto Exp $ * @date 2010 */ #ifndef _PLATON_CPU_IS64BIT_H #define _PLATON_CPU_IS64BIT_H #ifndef PLATON_FUNC # define PLATON_FUNC(_name) _name #endif #ifndef PLATON_FUNC_STR # define PLATON_FUNC_STR(_name) #_name #endif #ifdef __cplusplus extern "C" { #endif /** * Detects 64-bit CPU * * @return 1 if it is 64-bit, 0 otherwise * -1 for Sparc platform */ int PLATON_FUNC(is64bit)(void); #ifdef __cplusplus } #endif #endif /* #ifndef _PLATON_CPU_IS64BIT_H */