Diff for libplaton/platon/cpu/is64bit.c 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 |
|
|
| |
|
| int PLATON_FUNC(is64bit)(void) |
int PLATON_FUNC(is64bit)(void) |
| { |
{ |
| |
#if defined(__sparc__) |
| |
return -1; |
| |
#else |
| int iedx = 0; |
int iedx = 0; |
| asm volatile ("movl $0x80000001, %%eax\n" |
asm volatile ("movl $0x80000001, %%eax\n" |
| "cpuid\n" |
"cpuid\n" |
| Line 18 int PLATON_FUNC(is64bit)(void) |
|
| Line 21 int PLATON_FUNC(is64bit)(void) |
|
| return 1; |
return 1; |
| } |
} |
| return 0; |
return 0; |
| |
#endif |
| } |
} |
| |
|
| /* Modeline for ViM {{{ |
/* Modeline for ViM {{{ |
Platon Group <platon@platon.org> http://platon.org/
|
|