summaryrefslogtreecommitdiffstats
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-12-12 22:50:09 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2014-12-20 18:06:55 +0100
commit67618a2c55e0b6860bbb083962cdd28a543bf82a (patch)
tree9c1648dcda4e6ba9b0858c906776b61d829577a0 /src/video_core/pica.h
parentPica/VertexShader: Move code around a bit. (diff)
downloadyuzu-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.h8
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!