/
usr
/
include
/
python3.10
/
/usr/include/python3.10
mkdir
upload
Name
Size
Mode
Actions
cpython/
-
0755
rm
internal/
-
0755
rm
abstract.h
31405
0644
edit
dl
rm
bltinmodule.h
264
0644
edit
dl
rm
boolobject.h
1224
0644
edit
dl
rm
bytearrayobject.h
1484
0644
edit
dl
rm
bytesobject.h
2593
0644
edit
dl
rm
cellobject.h
720
0644
edit
dl
rm
ceval.h
5703
0644
edit
dl
rm
classobject.h
1657
0644
edit
dl
rm
code.h
318
0644
edit
dl
rm
codecs.h
7071
0644
edit
dl
rm
compile.h
520
0644
edit
dl
rm
complexobject.h
1806
0644
edit
dl
rm
context.h
1962
0644
edit
dl
rm
datetime.h
9635
0644
edit
dl
rm
descrobject.h
3002
0644
edit
dl
rm
dictobject.h
3853
0644
edit
dl
rm
dynamic_annotations.h
22471
0644
edit
dl
rm
enumobject.h
253
0644
edit
dl
rm
errcode.h
1700
0644
edit
dl
rm
eval.h
831
0644
edit
dl
rm
exports.h
1098
0644
edit
dl
rm
fileobject.h
1571
0644
edit
dl
rm
fileutils.h
508
0644
edit
dl
rm
floatobject.h
4360
0644
edit
dl
rm
frameobject.h
337
0644
edit
dl
rm
funcobject.h
4257
0644
edit
dl
rm
genericaliasobject.h
334
0644
edit
dl
rm
genobject.h
3347
0644
edit
dl
rm
graminit.h
0
0644
edit
dl
rm
import.h
3026
0644
edit
dl
rm
interpreteridobject.h
334
0644
edit
dl
rm
intrcheck.h
772
0644
edit
dl
rm
iterobject.h
593
0644
edit
dl
rm
listobject.h
1781
0644
edit
dl
rm
longintrepr.h
3799
0644
edit
dl
rm
longobject.h
8606
0644
edit
dl
rm
marshal.h
803
0644
edit
dl
rm
memoryobject.h
2764
0644
edit
dl
rm
methodobject.h
4147
0644
edit
dl
rm
modsupport.h
10333
0644
edit
dl
rm
moduleobject.h
2458
0644
edit
dl
rm
namespaceobject.h
349
0644
edit
dl
rm
object.h
28344
0644
edit
dl
rm
objimpl.h
8445
0644
edit
dl
rm
opcode.h
5509
0644
edit
dl
rm
osdefs.h
737
0644
edit
dl
rm
osmodule.h
291
0644
edit
dl
rm
patchlevel.h
1301
0644
edit
dl
rm
pycapsule.h
1725
0644
edit
dl
rm
pyconfig.h
4159
0644
edit
dl
rm
pydtrace.h
2413
0644
edit
dl
rm
pyerrors.h
12426
0644
edit
dl
rm
pyexpat.h
2450
0644
edit
dl
rm
pyframe.h
466
0644
edit
dl
rm
pyhash.h
4223
0644
edit
dl
rm
pylifecycle.h
2080
0644
edit
dl
rm
pymacconfig.h
2989
0644
edit
dl
rm
pymacro.h
4920
0644
edit
dl
rm
pymath.h
8313
0644
edit
dl
rm
pymem.h
3891
0644
edit
dl
rm
pyport.h
31684
0644
edit
dl
rm
pystate.h
5250
0644
edit
dl
rm
pystrcmp.h
436
0644
edit
dl
rm
pystrhex.h
849
0644
edit
dl
rm
pystrtod.h
1483
0644
edit
dl
rm
Python.h
3224
0644
edit
dl
rm
pythonrun.h
1110
0644
edit
dl
rm
pythread.h
5989
0644
edit
dl
rm
py_curses.h
2474
0644
edit
dl
rm
rangeobject.h
628
0644
edit
dl
rm
setobject.h
3381
0644
edit
dl
rm
sliceobject.h
2516
0644
edit
dl
rm
structmember.h
2074
0644
edit
dl
rm
structseq.h
1390
0644
edit
dl
rm
sysmodule.h
1242
0644
edit
dl
rm
token.h
2669
0644
edit
dl
rm
traceback.h
584
0644
edit
dl
rm
tracemalloc.h
1114
0644
edit
dl
rm
tupleobject.h
1614
0644
edit
dl
rm
typeslots.h
2460
0644
edit
dl
rm
unicodeobject.h
36148
0644
edit
dl
rm
warnings.h
1776
0644
edit
dl
rm
weakrefobject.h
2863
0644
edit
dl
rm
Edit:
/usr/include/python3.10/floatobject.h
(4360B)
/* Float object interface */ /* PyFloatObject represents a (double precision) floating point number. */ #ifndef Py_FLOATOBJECT_H #define Py_FLOATOBJECT_H #ifdef __cplusplus extern "C" { #endif #ifndef Py_LIMITED_API typedef struct { PyObject_HEAD double ob_fval; } PyFloatObject; #endif PyAPI_DATA(PyTypeObject) PyFloat_Type; #define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type) #define PyFloat_CheckExact(op) Py_IS_TYPE(op, &PyFloat_Type) #ifdef Py_NAN #define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN) #endif #define Py_RETURN_INF(sign) do \ if (copysign(1., sign) == 1.) { \ return PyFloat_FromDouble(Py_HUGE_VAL); \ } else { \ return PyFloat_FromDouble(-Py_HUGE_VAL); \ } while(0) PyAPI_FUNC(double) PyFloat_GetMax(void); PyAPI_FUNC(double) PyFloat_GetMin(void); PyAPI_FUNC(PyObject *) PyFloat_GetInfo(void); /* Return Python float from string PyObject. */ PyAPI_FUNC(PyObject *) PyFloat_FromString(PyObject*); /* Return Python float from C double. */ PyAPI_FUNC(PyObject *) PyFloat_FromDouble(double); /* Extract C double from Python float. The macro version trades safety for speed. */ PyAPI_FUNC(double) PyFloat_AsDouble(PyObject *); #ifndef Py_LIMITED_API #define PyFloat_AS_DOUBLE(op) (((PyFloatObject *)(op))->ob_fval) #endif #ifndef Py_LIMITED_API /* _PyFloat_{Pack,Unpack}{4,8} * * The struct and pickle (at least) modules need an efficient platform- * independent way to store floating-point values as byte strings. * The Pack routines produce a string from a C double, and the Unpack * routines produce a C double from such a string. The suffix (4 or 8) * specifies the number of bytes in the string. * * On platforms that appear to use (see _PyFloat_Init()) IEEE-754 formats * these functions work by copying bits. On other platforms, the formats the * 4- byte format is identical to the IEEE-754 single precision format, and * the 8-byte format to the IEEE-754 double precision format, although the * packing of INFs and NaNs (if such things exist on the platform) isn't * handled correctly, and attempting to unpack a string containing an IEEE * INF or NaN will raise an exception. * * On non-IEEE platforms with more precision, or larger dynamic range, than * 754 supports, not all values can be packed; on non-IEEE platforms with less * precision, or smaller dynamic range, not all values can be unpacked. What * happens in such cases is partly accidental (alas). */ /* The pack routines write 2, 4 or 8 bytes, starting at p. le is a bool * argument, true if you want the string in little-endian format (exponent * last, at p+1, p+3 or p+7), false if you want big-endian format (exponent * first, at p). * Return value: 0 if all is OK, -1 if error (and an exception is * set, most likely OverflowError). * There are two problems on non-IEEE platforms: * 1): What this does is undefined if x is a NaN or infinity. * 2): -0.0 and +0.0 produce the same string. */ PyAPI_FUNC(int) _PyFloat_Pack2(double x, unsigned char *p, int le); PyAPI_FUNC(int) _PyFloat_Pack4(double x, unsigned char *p, int le); PyAPI_FUNC(int) _PyFloat_Pack8(double x, unsigned char *p, int le); /* The unpack routines read 2, 4 or 8 bytes, starting at p. le is a bool * argument, true if the string is in little-endian format (exponent * last, at p+1, p+3 or p+7), false if big-endian (exponent first, at p). * Return value: The unpacked double. On error, this is -1.0 and * PyErr_Occurred() is true (and an exception is set, most likely * OverflowError). Note that on a non-IEEE platform this will refuse * to unpack a string that represents a NaN or infinity. */ PyAPI_FUNC(double) _PyFloat_Unpack2(const unsigned char *p, int le); PyAPI_FUNC(double) _PyFloat_Unpack4(const unsigned char *p, int le); PyAPI_FUNC(double) _PyFloat_Unpack8(const unsigned char *p, int le); PyAPI_FUNC(void) _PyFloat_DebugMallocStats(FILE* out); /* Format the object based on the format_spec, as defined in PEP 3101 (Advanced String Formatting). */ PyAPI_FUNC(int) _PyFloat_FormatAdvancedWriter( _PyUnicodeWriter *writer, PyObject *obj, PyObject *format_spec, Py_ssize_t start, Py_ssize_t end); #endif /* Py_LIMITED_API */ #ifdef __cplusplus } #endif #endif /* !Py_FLOATOBJECT_H */
Save
cmd:
run