Coverage Report

Created: 2025-10-12 06:48

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/cpython/Python/pymath.c
Line
Count
Source
1
#include "Python.h"
2
3
4
#ifdef HAVE_GCC_ASM_FOR_X87
5
// Inline assembly for getting and setting the 387 FPU control word on
6
// GCC/x86.
7
#ifdef _Py_MEMORY_SANITIZER
8
__attribute__((no_sanitize_memory))
9
#endif
10
838k
unsigned short _Py_get_387controlword(void) {
11
838k
    unsigned short cw;
12
838k
    __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
13
838k
    return cw;
14
838k
}
15
16
1.67M
void _Py_set_387controlword(unsigned short cw) {
17
1.67M
    __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
18
1.67M
}
19
#endif  // HAVE_GCC_ASM_FOR_X87