FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Include/cpython/floatobject.h at 3.11 · 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.6k
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
/
Include
/
cpython
/
floatobject.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (16 loc) · 702 Bytes
Breadcrumbs
cpython
/
Include
/
cpython
/
floatobject.h
Copy path
File metadata and controls
21 lines (16 loc) · 702 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
20
21
#ifndef
Py_CPYTHON_FLOATOBJECT_H
# error
"this header file must not be included directly"
#endif
typedef
struct
{
PyObject_HEAD
double
ob_fval
;
}
PyFloatObject
;
// Macro version of PyFloat_AsDouble() trading safety for speed.
// It doesn't check if op is a double object.
#define
PyFloat_AS_DOUBLE
(
op
) (((PyFloatObject *)(op))->ob_fval)
PyAPI_FUNC
(
int
)
PyFloat_Pack2
(
double
x
,
char
*
p
,
int
le
);
PyAPI_FUNC
(
int
)
PyFloat_Pack4
(
double
x
,
char
*
p
,
int
le
);
PyAPI_FUNC
(
int
)
PyFloat_Pack8
(
double
x
,
char
*
p
,
int
le
);
PyAPI_FUNC
(
double
)
PyFloat_Unpack2
(
const
char
*
p
,
int
le
);
PyAPI_FUNC
(
double
)
PyFloat_Unpack4
(
const
char
*
p
,
int
le
);
PyAPI_FUNC
(
double
)
PyFloat_Unpack8
(
const
char
*
p
,
int
le
);
Back
|
FazBrowse Home
|
New Git URL