This commit is contained in:
Michael Fabian Dirks
2016-03-11 14:15:12 +01:00
parent e49ae6fbcd
commit 2b82733b4b
15 changed files with 1194 additions and 1417 deletions
+11 -29
View File
@@ -117,7 +117,7 @@ DLL_FUNCTION(void) BU_MassOp_Run(MassOp* massop) {
case Double:
switch (instr->code) {
case Create:
instr->result = (uint32_t) BU_Double_Create();
instr->result = (uint32_t) BU_Double_New();
break;
case Destroy:
BU_Double_Destroy((double_t*)instr->leftOperand);
@@ -125,15 +125,6 @@ DLL_FUNCTION(void) BU_MassOp_Run(MassOp* massop) {
case Copy:
instr->result = (uint32_t) BU_Double_Copy((double_t*)instr->leftOperand);
break;
case TempCreate:
instr->result = (uint32_t) BU_Double_TempCreate();
break;
case TempCopy:
instr->result = (uint32_t) BU_Double_TempCopy((double_t*)instr->leftOperand);
break;
case TempCleanup:
BU_Double_TempCleanup();
break;
case Set:
BU_Double_Set((double_t*)instr->leftOperand, (double_t*)instr->rightOperand);
break;
@@ -154,43 +145,34 @@ DLL_FUNCTION(void) BU_MassOp_Run(MassOp* massop) {
break;
}
break;
case LongLong:
case Long:
switch (instr->code) {
case Create:
instr->result = (uint32_t) BU_LongLong_Create();
instr->result = (uint32_t) BU_Long_New();
break;
case Destroy:
BU_LongLong_Destroy((int64_t*)instr->leftOperand);
BU_Long_Destroy((int64_t*)instr->leftOperand);
break;
case Copy:
instr->result = (uint32_t) BU_LongLong_Copy((int64_t*)instr->leftOperand);
break;
case TempCreate:
instr->result = (uint32_t) BU_LongLong_TempCreate();
break;
case TempCopy:
instr->result = (uint32_t) BU_LongLong_TempCopy((int64_t*)instr->leftOperand);
break;
case TempCleanup:
BU_LongLong_TempCleanup();
instr->result = (uint32_t) BU_Long_Copy((int64_t*)instr->leftOperand);
break;
case Set:
BU_LongLong_Set((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
BU_Long_Set((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
break;
case Add:
BU_LongLong_Add((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
BU_Long_Add((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
break;
case Sub:
BU_LongLong_Sub((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
BU_Long_Sub((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
break;
case Mul:
BU_LongLong_Mul((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
BU_Long_Mul((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
break;
case Div:
BU_LongLong_Div((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
BU_Long_Div((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
break;
case Compare:
instr->result = BU_LongLong_Compare((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
instr->result = BU_Long_Compare((int64_t*)instr->leftOperand, (int64_t*)instr->rightOperand);
break;
}
break;
+1 -2
View File
@@ -17,10 +17,9 @@
#pragma once
#include "BlitzUtility.h"
#include "Type\Double.h"
#include "Type\LongLong.h"
enum MassOpType {
LongLong = 0,
Long = 0,
Double = 1,
Vector2 = 10,