aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-21 14:02:11 +0100
committerGravatar Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-28 00:36:54 +0100
commit22ae87530b11226895a6a3682b9e75c5f5b9045d (patch)
tree650c7ffea9971d8479a67521050c15b5347e333f /src/video_core/pica.h
parent1775adc34c588c8c37ef8c07dc0c3ff2358d5a31 (diff)
Common: Cleanup emu_window includes.
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r--src/video_core/pica.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index 9628a758..be8ff759 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -5,10 +5,10 @@
#pragma once
#include <array>
+#include <cmath>
#include <cstddef>
-#include <initializer_list>
#include <map>
-#include <vector>
+#include <string>
#include "common/assert.h"
#include "common/bit_field.h"
@@ -1014,7 +1014,7 @@ struct float24 {
u32 mantissa = hex & 0xFFFF;
u32 exponent = (hex >> 16) & 0x7F;
u32 sign = hex >> 23;
- ret.value = powf(2.0f, (float)exponent-63.0f) * (1.0f + mantissa * powf(2.0f, -16.f));
+ ret.value = std::pow(2.0f, (float)exponent-63.0f) * (1.0f + mantissa * std::pow(2.0f, -16.f));
if (sign)
ret.value = -ret.value;
}