06-WPO-23Z-projekt-python/.env/lib/python3.11/site-packages/numpy/distutils/checks/extra_vsx3_half_double.c
2024-01-13 18:51:41 +01:00

13 lines
354 B
C

/**
* Assembler may not fully support the following VSX3 scalar
* instructions, even though compilers report VSX3 support.
*/
int main(void)
{
unsigned short bits = 0xFF;
double f;
__asm__ __volatile__("xscvhpdp %x0,%x1" : "=wa"(f) : "wa"(bits));
__asm__ __volatile__ ("xscvdphp %x0,%x1" : "=wa" (bits) : "wa" (f));
return bits;
}