FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Python/pymath.c at 3.14 · python/cpython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.3k
Star
74.9k
Code
Issues
5k+
Pull requests
2.5k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Python
/
pymath.c
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (16 loc) · 478 Bytes
Breadcrumbs
cpython
/
Python
/
pymath.c
Copy path
File metadata and controls
19 lines (16 loc) · 478 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#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
Back
|
FazBrowse Home
|
New Git URL