facf0c92e0
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
20 lines
478 B
C
20 lines
478 B
C
#include "Python.h"
|
|
|
|
|
|
#ifdef HAVE_GCC_ASM_FOR_X87
|
|
// Inline assembly for getting and setting the 387 FPU control word on
|
|
// GCC/x86.
|
|
#ifdef _Py_MEMORY_SANITIZER
|
|
__attribute__((no_sanitize_memory))
|
|
#endif
|
|
unsigned short _Py_get_387controlword(void) {
|
|
unsigned short cw;
|
|
__asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
|
|
return cw;
|
|
}
|
|
|
|
void _Py_set_387controlword(unsigned short cw) {
|
|
__asm__ __volatile__ ("fldcw %0" : : "m" (cw));
|
|
}
|
|
#endif // HAVE_GCC_ASM_FOR_X87
|