/** @file FloatIntegerOps.cp * * @author Roland Conybeare, Feb 2206 **/ #include "FloatIntegerOps.hpp" #include "float/INumeric_DFloat.hpp" namespace xo { using xo::mm::AGCObject; namespace scm { // ----- Float op Integer ----- obj FloatIntegerOps::multiply(obj rcx, DFloat * x, DInteger * y) { return DFloat::box(rcx.allocator(), x->value() * y->value()); } obj FloatIntegerOps::divide(obj rcx, DFloat * x, DInteger * y) { return DFloat::box(rcx.allocator(), x->value() / y->value()); } // ----- Integer op Float ----- obj IntegerFloatOps::multiply(obj rcx, DInteger * x, DFloat * y) { return DFloat::box(rcx.allocator(), x->value() * y->value()); } obj IntegerFloatOps::divide(obj rcx, DInteger * x, DFloat * y) { return DFloat::box(rcx.allocator(), x->value() / y->value()); } } } /* end FloatIntegerOps.cpp */