mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 01:30:27 +02:00
VM calls =? through intrinsic
* libguile/intrinsics.c (numerically_equal_p): New intrinsic. * libguile/intrinsics.h (SCM_FOR_ALL_VM_INTRINSICS): Declare new intrinsic. * libguile/vm-engine.c (=?): Call through intrinsic.
This commit is contained in:
parent
0a8a7e9fd0
commit
007fcf699f
3 changed files with 9 additions and 1 deletions
|
@ -2879,7 +2879,7 @@ VM_NAME (scm_i_thread *thread, struct scm_vm *vp,
|
|||
y = SP_REF (b);
|
||||
|
||||
SYNC_IP ();
|
||||
if (scm_is_true (scm_num_eq_p (x, y)))
|
||||
if (scm_vm_intrinsics.numerically_equal_p (x, y))
|
||||
vp->compare_result = SCM_F_COMPARE_EQUAL;
|
||||
else
|
||||
vp->compare_result = SCM_F_COMPARE_NONE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue