Linux header fixes

This commit is contained in:
Dr. Chat
2017-02-05 22:45:01 -06:00
parent 4f46c51fe3
commit 803f0be049
11 changed files with 24 additions and 9 deletions

View File

@@ -10,6 +10,7 @@
#include "xenia/cpu/hir/value.h"
#include <cmath>
#include <cstdlib>
#include "xenia/base/assert.h"
#include "xenia/base/byte_order.h"
@@ -1330,7 +1331,7 @@ void Value::VectorSub(Value* other, TypeName type, bool is_unsigned,
void Value::DotProduct3(Value* other) {
assert_true(this->type == VEC128_TYPE && other->type == VEC128_TYPE);
switch (type) {
case VEC128_TYPE:
case VEC128_TYPE: {
alignas(16) float result[4];
__m128 src1 = _mm_load_ps(constant.v128.f32);
__m128 src2 = _mm_load_ps(other->constant.v128.f32);
@@ -1339,7 +1340,7 @@ void Value::DotProduct3(Value* other) {
// TODO(rick): is this sane?
type = FLOAT32_TYPE;
constant.f32 = result[0];
break;
} break;
default:
assert_unhandled_case(type);
break;
@@ -1349,7 +1350,7 @@ void Value::DotProduct3(Value* other) {
void Value::DotProduct4(Value* other) {
assert_true(this->type == VEC128_TYPE && other->type == VEC128_TYPE);
switch (type) {
case VEC128_TYPE:
case VEC128_TYPE: {
alignas(16) float result[4];
__m128 src1 = _mm_load_ps(constant.v128.f32);
__m128 src2 = _mm_load_ps(other->constant.v128.f32);
@@ -1358,7 +1359,7 @@ void Value::DotProduct4(Value* other) {
// TODO(rick): is this sane?
type = FLOAT32_TYPE;
constant.f32 = result[0];
break;
} break;
default:
assert_unhandled_case(type);
break;