2008-03-05 09:52:00 -05:00
|
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Microsoft Research Singularity
|
|
|
|
//
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
//
|
|
|
|
// File: Number.cpp
|
|
|
|
//
|
2008-11-17 18:29:00 -05:00
|
|
|
// Note: Kernel & Process
|
2008-03-05 09:52:00 -05:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "hal.h"
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_FloatFromDecimal(Struct_System_Decimal *d,
|
|
|
|
float32 *result)
|
|
|
|
{
|
|
|
|
Assert(!"FloatFromDecimal");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_DoubleFromDecimal(Struct_System_Decimal *d,
|
|
|
|
float64 *result)
|
|
|
|
{
|
|
|
|
Assert(!"DoubleFromDecimal");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_DecimalTruncate(Struct_System_Decimal *d,
|
|
|
|
Struct_System_Decimal *result)
|
|
|
|
{
|
|
|
|
Assert(!"DecimalTruncate");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_DecimalRound(Struct_System_Decimal *d,
|
|
|
|
int decimals,
|
|
|
|
Struct_System_Decimal *result)
|
|
|
|
{
|
|
|
|
Assert(!"DecimalRound");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_DecimalCompare(Struct_System_Decimal *d1,
|
|
|
|
Struct_System_Decimal *d2)
|
|
|
|
{
|
|
|
|
Assert(!"DecimalCompare");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_DecimalFromDouble(double d,
|
|
|
|
Struct_System_Decimal *result)
|
|
|
|
{
|
|
|
|
Assert(!"DecimalFromDouble");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_DecimalFromFloat(float d,
|
|
|
|
Struct_System_Decimal *result)
|
|
|
|
{
|
|
|
|
Assert(!"DecimalFromFloat");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_DecimalAdd(Struct_System_Decimal * d1,
|
|
|
|
Struct_System_Decimal * d2,
|
|
|
|
Struct_System_Decimal * result)
|
|
|
|
{
|
|
|
|
Assert(!"DecimalAdd");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_DecimalDivide(Struct_System_Decimal *d1,
|
|
|
|
Struct_System_Decimal *d2,
|
|
|
|
Struct_System_Decimal *result)
|
|
|
|
{
|
|
|
|
Assert(!"DecimalDivide");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_DecimalFloor(Struct_System_Decimal *d,
|
|
|
|
Struct_System_Decimal *result)
|
|
|
|
{
|
|
|
|
Assert(!"DecimalFloor");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_DecimalMultiply(Struct_System_Decimal *d1,
|
|
|
|
Struct_System_Decimal *d2,
|
|
|
|
Struct_System_Decimal *result)
|
|
|
|
{
|
|
|
|
Assert(!"DecimalMultiply");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int Struct_System_Decimal::g_DecimalSubtract(Struct_System_Decimal *d1,
|
|
|
|
Struct_System_Decimal *d2,
|
|
|
|
Struct_System_Decimal *result)
|
|
|
|
{
|
|
|
|
Assert(!"DecimalSubtract");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
//
|
|
|
|
///////////////////////////////////////////////////////////////// End of File.
|