mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
...
This commit is contained in:
parent
fa28b05e1a
commit
8cc2ec0e40
@ -133,10 +133,6 @@ inline bool is_float(PyObject* p) noexcept { return (PK_BITS(p) & 0b11) == 0b10;
|
||||
inline bool is_special(PyObject* p) noexcept { return (PK_BITS(p) & 0b11) == 0b11; }
|
||||
inline bool is_int(PyObject* p) noexcept { return is_small_int(p) || is_heap_int(p); }
|
||||
|
||||
inline bool is_both_int_or_float(PyObject* a, PyObject* b) noexcept {
|
||||
return is_tagged(a) && is_tagged(b);
|
||||
}
|
||||
|
||||
inline bool is_both_float(PyObject* a, PyObject* b) noexcept {
|
||||
return is_float(a) && is_float(b);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user