diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2014-12-23 16:05:51 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2014-12-29 05:08:11 +0100 |
commit | 8369ee58035ca98f776428f6cccbcf987fee3bc9 (patch) | |
tree | 3c1800823ffe55529ba6dbcba0c4407d2da625f2 /src/video_core/pica.h | |
parent | GPU: Bitwise texture swizzling (diff) | |
download | yuzu-8369ee58035ca98f776428f6cccbcf987fee3bc9.tar yuzu-8369ee58035ca98f776428f6cccbcf987fee3bc9.tar.gz yuzu-8369ee58035ca98f776428f6cccbcf987fee3bc9.tar.bz2 yuzu-8369ee58035ca98f776428f6cccbcf987fee3bc9.tar.lz yuzu-8369ee58035ca98f776428f6cccbcf987fee3bc9.tar.xz yuzu-8369ee58035ca98f776428f6cccbcf987fee3bc9.tar.zst yuzu-8369ee58035ca98f776428f6cccbcf987fee3bc9.zip |
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r-- | src/video_core/pica.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h index 89d97e4e9..38bac748c 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h @@ -757,6 +757,26 @@ struct float24 { return float24::FromFloat32(ToFloat32() - flt.ToFloat32()); } + float24& operator *= (const float24& flt) { + value *= flt.ToFloat32(); + return *this; + } + + float24& operator /= (const float24& flt) { + value /= flt.ToFloat32(); + return *this; + } + + float24& operator += (const float24& flt) { + value += flt.ToFloat32(); + return *this; + } + + float24& operator -= (const float24& flt) { + value -= flt.ToFloat32(); + return *this; + } + float24 operator - () const { return float24::FromFloat32(-ToFloat32()); } |