X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fvfpu.h;h=07bcacd970d0fd409034d078110fb8e8bf264813;hp=8444afd27a31feb4761d20a4a9f2d8df4b7f10ac;hb=612d71e94fa4a4ca394fb1f566926392e95a2fa8;hpb=9e1a33043e1242c4605f2a3a48bd948fc760d948;ds=sidebyside diff --git a/src/vfpu.h b/src/vfpu.h index 8444afd..07bcacd 100644 --- a/src/vfpu.h +++ b/src/vfpu.h @@ -1,6 +1,7 @@ /** * @file vfpu.h * @brief Implements a terrible and hacky interface to use a virtual FPU to do floating point operations + * Updated with even more terror! Whatever floats the boat! */ #ifndef _VFPU_H @@ -17,6 +18,9 @@ namespace VFPU extern Register Exec(const Register & a, const Register & b, Opcode op, Rmode rmode = EVEN); // operate with registers extern float Exec(float a, float b, Opcode op, Rmode rmode = EVEN); //converts floats into registers and back + /** + * Wrapper class for floats where operations are done on the VFPU + */ class Float { public: @@ -26,7 +30,7 @@ namespace VFPU if (!init) { init = true; - VFPU::Start(); + VFPU::Start("flops.vcd"); } } Float(const Float & cpy) : m_value(cpy.m_value) {}