MCPcopy Index your code
hub / github.com/RustPython/RustPython / float_compactlong_guard

Function float_compactlong_guard

crates/vm/src/frame.rs:1184–1187  ·  view source on GitHub ↗
(lhs: &PyObject, rhs: &PyObject, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1182
1183#[inline]
1184fn float_compactlong_guard(lhs: &PyObject, rhs: &PyObject, vm: &VirtualMachine) -> bool {
1185 exact_float_from_obj(lhs, vm).is_some_and(|f| !f.is_nan())
1186 && compact_int_from_obj(rhs, vm).is_some()
1187}
1188
1189#[inline]
1190fn nonzero_float_compactlong_guard(lhs: &PyObject, rhs: &PyObject, vm: &VirtualMachine) -> bool {

Callers 1

Calls 3

exact_float_from_objFunction · 0.85
compact_int_from_objFunction · 0.85
is_nanMethod · 0.45

Tested by

no test coverage detected