diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-12-12 22:50:09 +0100 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-12-20 18:06:55 +0100 |
commit | 67618a2c55e0b6860bbb083962cdd28a543bf82a (patch) | |
tree | 9c1648dcda4e6ba9b0858c906776b61d829577a0 /src/video_core/pica.h | |
parent | Pica/VertexShader: Move code around a bit. (diff) | |
download | yuzu-67618a2c55e0b6860bbb083962cdd28a543bf82a.tar yuzu-67618a2c55e0b6860bbb083962cdd28a543bf82a.tar.gz yuzu-67618a2c55e0b6860bbb083962cdd28a543bf82a.tar.bz2 yuzu-67618a2c55e0b6860bbb083962cdd28a543bf82a.tar.lz yuzu-67618a2c55e0b6860bbb083962cdd28a543bf82a.tar.xz yuzu-67618a2c55e0b6860bbb083962cdd28a543bf82a.tar.zst yuzu-67618a2c55e0b6860bbb083962cdd28a543bf82a.zip |
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r-- | src/video_core/pica.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index 583614328..87a9e7913 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h @@ -771,6 +771,14 @@ struct float24 { return ToFloat32() <= flt.ToFloat32(); } + bool operator == (const float24& flt) const { + return ToFloat32() == flt.ToFloat32(); + } + + bool operator != (const float24& flt) const { + return ToFloat32() != flt.ToFloat32(); + } + private: // Stored as a regular float, merely for convenience // TODO: Perform proper arithmetic on this! |