Fix a bunch of missing cmath includes
...as well as missing std:: namespace specifiers
This commit is contained in:
parent
4c55039c22
commit
f0ba717142
|
@ -10,6 +10,7 @@
|
|||
#include "xenia/cpu/compiler/passes/constant_propagation_pass.h"
|
||||
|
||||
#include <gflags/gflags.h>
|
||||
#include <cmath>
|
||||
|
||||
#include "xenia/base/assert.h"
|
||||
#include "xenia/base/profiling.h"
|
||||
|
@ -303,10 +304,10 @@ bool ConstantPropagationPass::Run(HIRBuilder* builder) {
|
|||
case OPCODE_IS_NAN:
|
||||
if (i->src1.value->IsConstant()) {
|
||||
if (i->src1.value->type == FLOAT32_TYPE &&
|
||||
isnan(i->src1.value->constant.f32)) {
|
||||
std::isnan(i->src1.value->constant.f32)) {
|
||||
v->set_constant(uint8_t(1));
|
||||
} else if (i->src1.value->type == FLOAT64_TYPE &&
|
||||
isnan(i->src1.value->constant.f64)) {
|
||||
std::isnan(i->src1.value->constant.f64)) {
|
||||
v->set_constant(uint8_t(1));
|
||||
} else {
|
||||
v->set_constant(uint8_t(0));
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "xenia/gpu/command_processor.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
||||
#include "xenia/base/byte_stream.h"
|
||||
#include "xenia/base/logging.h"
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "xenia/gpu/texture_info.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
#include "third_party/xxhash/xxhash.h"
|
||||
|
|
|
@ -18,8 +18,9 @@
|
|||
#ifdef IGNORED_LLVM_XENIA
|
||||
#include "llvm/Support/SwapByteOrder.h"
|
||||
#endif // IGNORED_LLVM_XENIA
|
||||
#include "llvm/Support/type_traits.h"
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
#include "llvm/Support/type_traits.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <intrin.h>
|
||||
|
|
Loading…
Reference in New Issue