Diff for libplaton/platon/cpu/is64bit.h between version 1.1 and 1.2
| version 1.1, 2010/04/24 14:03:15 |
version 1.2, 2010/04/24 14:19:12 |
|
|
| * @file platon/cpu/is64bit.h |
* @file platon/cpu/is64bit.h |
| * @author tyranid |
* @author tyranid |
| * @url http://stackoverflow.com/questions/1917761/how-do-you-detect-the-cpu-architecture |
* @url http://stackoverflow.com/questions/1917761/how-do-you-detect-the-cpu-architecture |
| * @version \$Platon: $ |
* @version \$Platon: libplaton/platon/cpu/is64bit.h,v 1.1 2010-04-24 14:03:15 nepto Exp $ |
| * @date 2010 |
* @date 2010 |
| */ |
*/ |
| |
|
| #ifndef _PLATON_CPU_RLE_H |
#ifndef _PLATON_CPU_IS64BIT_H |
| #define _PLATON_CPU_RLE_H |
#define _PLATON_CPU_IS64BIT_H |
| |
|
| #ifndef PLATON_FUNC |
#ifndef PLATON_FUNC |
| # define PLATON_FUNC(_name) _name |
# define PLATON_FUNC(_name) _name |
|
|
| * Detects 64-bit CPU |
* Detects 64-bit CPU |
| * |
* |
| * @return 1 if it is 64-bit, 0 otherwise |
* @return 1 if it is 64-bit, 0 otherwise |
| |
* -1 for Sparc platform |
| */ |
*/ |
| int PLATON_FUNC(is64bit)(void); |
int PLATON_FUNC(is64bit)(void); |
| |
|
|
|
| } |
} |
| #endif |
#endif |
| |
|
| #endif /* #ifndef _PLATON_CPU_RLE_H */ |
#endif /* #ifndef _PLATON_CPU_IS64BIT_H */ |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|