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
+27 -73
View File
@@ -16,82 +16,36 @@
#pragma once
#include "BlitzUtility.h"
#include "LongLong.h"
#include <iomanip>
#include <sstream>
#pragma region Constructor & Destructor
DLL_FUNCTION(double_t*) BU_Double_Create();
DLL_FUNCTION(void) BU_Double_Destroy(double_t* pthis);
DLL_FUNCTION(double_t*) BU_Double_Copy(double_t* other);
#pragma comment(linker, "/EXPORT:BU_Double_Create=_BU_Double_Create@0")
#pragma comment(linker, "/EXPORT:BU_Double_Destroy=_BU_Double_Destroy@4")
#pragma comment(linker, "/EXPORT:BU_Double_Copy=_BU_Double_Copy@4")
#pragma endregion Constructor & Destructor
DLL_FUNCTION(double_t*) BU_Double_New();
DLL_FUNCTION(double_t*) BU_Double_Copy(double_t* pRight);
DLL_FUNCTION(void) BU_Double_Destroy(double_t* pThis);
#pragma region Temporary Objects
DLL_FUNCTION(double_t*) BU_Double_TempCreate();
DLL_FUNCTION(double_t*) BU_Double_TempCopy(double_t* other);
DLL_FUNCTION(void) BU_Double_SetTemp(double_t* pthis);
DLL_FUNCTION(void) BU_Double_UnsetTemp(double_t* pthis);
DLL_FUNCTION(void) BU_Double_TempCleanup();
#pragma comment(linker, "/EXPORT:BU_Double_TempCreate=_BU_Double_TempCreate@0")
#pragma comment(linker, "/EXPORT:BU_Double_TempCopy=_BU_Double_TempCopy@4")
#pragma comment(linker, "/EXPORT:BU_Double_SetTemp=_BU_Double_SetTemp@4")
#pragma comment(linker, "/EXPORT:BU_Double_UnsetTemp=_BU_Double_UnsetTemp@4")
#pragma comment(linker, "/EXPORT:BU_Double_TempCleanup=_BU_Double_TempCleanup@0")
#pragma endregion Temporary Objects
DLL_FUNCTION(const char*) BU_Double_ToString(double_t* pThis);
DLL_FUNCTION(double_t*) BU_Double_FromString(const char* pString);
#pragma region Math
DLL_FUNCTION(void) BU_Double_Set(double_t* pthis, double_t* other);
DLL_FUNCTION(void) BU_Double_SetF(double_t* pthis, float_t other);
#pragma comment(linker, "/EXPORT:BU_Double_Set=_BU_Double_Set@8")
#pragma comment(linker, "/EXPORT:BU_Double_SetF=_BU_Double_SetF@8")
DLL_FUNCTION(void) BU_Double_Add(double_t* pthis, double_t* other);
DLL_FUNCTION(void) BU_Double_AddF(double_t* pthis, float_t other);
#pragma comment(linker, "/EXPORT:BU_Double_Add=_BU_Double_Add@8")
#pragma comment(linker, "/EXPORT:BU_Double_AddF=_BU_Double_AddF@8")
DLL_FUNCTION(void) BU_Double_Sub(double_t* pthis, double_t* other);
DLL_FUNCTION(void) BU_Double_SubF(double_t* pthis, float_t other);
#pragma comment(linker, "/EXPORT:BU_Double_Sub=_BU_Double_Sub@8")
#pragma comment(linker, "/EXPORT:BU_Double_SubF=_BU_Double_SubF@8")
DLL_FUNCTION(void) BU_Double_Mul(double_t* pthis, double_t* other);
DLL_FUNCTION(void) BU_Double_MulF(double_t* pthis, float_t other);
#pragma comment(linker, "/EXPORT:BU_Double_Mul=_BU_Double_Mul@8")
#pragma comment(linker, "/EXPORT:BU_Double_MulF=_BU_Double_MulF@8")
DLL_FUNCTION(void) BU_Double_Div(double_t* pthis, double_t* other);
DLL_FUNCTION(void) BU_Double_DivF(double_t* pthis, float_t other);
#pragma comment(linker, "/EXPORT:BU_Double_Div=_BU_Double_Div@8")
#pragma comment(linker, "/EXPORT:BU_Double_DivF=_BU_Double_DivF@8")
#pragma endregion Math
DLL_FUNCTION(double_t*) BU_Double_FromF(float_t fOther);
DLL_FUNCTION(float_t) BU_Double_ToF(double_t* pThis);
#pragma region Comparision
DLL_FUNCTION(uint32_t) BU_Double_Compare(double_t* pthis, double_t* other);
DLL_FUNCTION(uint32_t) BU_Double_CompareF(double_t* pthis, float_t other);
#pragma comment(linker, "/EXPORT:BU_Double_Compare=_BU_Double_Compare@8")
#pragma comment(linker, "/EXPORT:BU_Double_CompareF=_BU_Double_CompareF@8")
#pragma endregion Comparision
DLL_FUNCTION(double_t*) BU_Double_FromI(int32_t iOther);
DLL_FUNCTION(int32_t) BU_Double_ToI(double_t* pThis);
#pragma region Conversion
// String conversion
DLL_FUNCTION(const char*) BU_Double_ToString(double_t* pthis);
DLL_FUNCTION(double_t*) BU_Double_FromString(const char* text);
#pragma comment(linker, "/EXPORT:BU_Double_ToString=_BU_Double_ToString@4")
#pragma comment(linker, "/EXPORT:BU_Double_FromString=_BU_Double_FromString@4")
// 32-Bit Floating Point
DLL_FUNCTION(float_t) BU_Double_ToFloat(double_t* pthis);
DLL_FUNCTION(double_t*) BU_Double_FromFloat(float_t other);
#pragma comment(linker, "/EXPORT:BU_Double_ToFloat=_BU_Double_ToFloat@4")
#pragma comment(linker, "/EXPORT:BU_Double_FromFloat=_BU_Double_FromFloat@4")
// 64-Bit Integer
DLL_FUNCTION(int64_t*) BU_Double_ToLongLong(double_t* pthis);
DLL_FUNCTION(double_t*) BU_Double_FromLongLong(int64_t* other);
#pragma comment(linker, "/EXPORT:BU_Double_ToLongLong=_BU_Double_ToLongLong@4")
#pragma comment(linker, "/EXPORT:BU_Double_FromLongLong=_BU_Double_FromLongLong@4")
#pragma endregion Conversion
DLL_FUNCTION(double_t*) BU_Double_FromL(int64_t* pOther);
DLL_FUNCTION(int64_t*) BU_Double_ToL(double_t* pThis);
#pragma region Serialization
DLL_FUNCTION(const char*) BU_Double_Serialize(double_t* pthis);
DLL_FUNCTION(double_t*) BU_Double_Deserialize(const char* text);
#pragma comment(linker, "/EXPORT:BU_Double_Serialize=_BU_Double_Serialize@4")
#pragma comment(linker, "/EXPORT:BU_Double_Deserialize=_BU_Double_Deserialize@4")
#pragma endregion Serialization
DLL_FUNCTION(int32_t) BU_Double_Compare(double_t* pThis, double_t* pOther);
DLL_FUNCTION(double_t*) BU_Double_Set(double_t* pThis, double_t* pOther);
DLL_FUNCTION(double_t*) BU_Double_Add(double_t* pThis, double_t* pOther);
DLL_FUNCTION(double_t*) BU_Double_Sub(double_t* pThis, double_t* pOther);
DLL_FUNCTION(double_t*) BU_Double_Div(double_t* pThis, double_t* pOther);
DLL_FUNCTION(double_t*) BU_Double_Mul(double_t* pThis, double_t* pOther);
DLL_FUNCTION(double_t*) BU_Double_Mod(double_t* pThis, double_t* pOther);
DLL_FUNCTION(double_t*) BU_Double_SetF(double_t* pThis, float_t fOther);
DLL_FUNCTION(double_t*) BU_Double_AddF(double_t* pThis, float_t fOther);
DLL_FUNCTION(double_t*) BU_Double_SubF(double_t* pThis, float_t fOther);
DLL_FUNCTION(double_t*) BU_Double_DivF(double_t* pThis, float_t fOther);
DLL_FUNCTION(double_t*) BU_Double_MulF(double_t* pThis, float_t fOther);
DLL_FUNCTION(double_t*) BU_Double_ModF(double_t* pThis, float_t fOther);