LCOV - code coverage report
Current view: | top level - Python - pymath.c (source / functions) |  |  | Hit | Total | Coverage
Test: | CPython 3.12 LCOV report [commit 5e6661bce9] |  | Lines: | 6 | 6 | 100.0 %
Date: | 2023-03-20 08:15:36 |  | Functions: | 2 | 2 | 100.0 %
|  |  | Branches: | 0 | 0 | -

               Branch data     Line data    Source code
           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                 :      11587 : unsigned short _Py_get_387controlword(void) {
          11                 :            :     unsigned short cw;
          12                 :      11587 :     __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
          13                 :      11587 :     return cw;
          14                 :            : }
          15                 :            :
          16                 :      23174 : void _Py_set_387controlword(unsigned short cw) {
          17                 :      23174 :     __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
          18                 :      23174 : }
          19                 :            : #endif  // HAVE_GCC_ASM_FOR_X87

Generated by: LCOV version 1.14