X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mono%2Fmetadata%2Fdecimal.h;h=6ab83cfbeed8f0872eb759a8c140a35325429ff7;hb=87f4f81d52ee965d3a242517300cf74e0c3810b8;hp=f587f3f602972cd2450ea7e43580cda78af44118;hpb=85637006de0b9d1350a4a8a4bac6d386c5739509;p=mono.git diff --git a/mono/metadata/decimal.h b/mono/metadata/decimal.h index f587f3f6029..6ab83cfbeed 100644 --- a/mono/metadata/decimal.h +++ b/mono/metadata/decimal.h @@ -1,4 +1,5 @@ #include "mono/metadata/object.h" +#include "mono/utils/mono-compiler.h" /* representation for C# type decimal */ /* This is the layout of MSC */ @@ -29,20 +30,20 @@ typedef struct /* function prototypes */ -gint32 mono_decimalIncr(/*[In, Out]*/decimal_repr* pA, /*[In]*/decimal_repr* pB); -gint32 mono_double2decimal(/*[Out]*/decimal_repr* pA, double val, gint32 digits); -gint32 mono_decimal2UInt64(/*[In]*/decimal_repr* pD, guint64* pResult); -gint32 mono_decimal2Int64(/*[In]*/decimal_repr* pD, gint64* pResult); -void mono_decimalFloorAndTrunc(/*[In, Out]*/decimal_repr* pD, gint32 floorFlag); -void mono_decimalRound(/*[In, Out]*/decimal_repr* pD, gint32 decimals); -gint32 mono_decimalMult(/*[In, Out]*/decimal_repr* pA, /*[In]*/decimal_repr* pB); -gint32 mono_decimalDiv(/*[Out]*/decimal_repr* pC, /*[In]*/decimal_repr* pA, /*[In]*/decimal_repr* pB); -gint32 mono_decimalIntDiv(/*[Out]*/decimal_repr* pC, /*[In]*/decimal_repr* pA, /*[In]*/decimal_repr* pB); -gint32 mono_decimalCompare(/*[In]*/decimal_repr* pA, /*[In]*/decimal_repr* pB); -double mono_decimal2double(/*[In]*/decimal_repr* pA); -gint32 mono_decimalSetExponent(/*[In, Out]*/decimal_repr* pA, gint32 texp); +gint32 mono_decimalIncr(/*[In, Out]*/decimal_repr* pA, /*[In]*/decimal_repr* pB) MONO_INTERNAL; +gint32 mono_double2decimal(/*[Out]*/decimal_repr* pA, double val, gint32 digits) MONO_INTERNAL; +gint32 mono_decimal2UInt64(/*[In]*/decimal_repr* pD, guint64* pResult) MONO_INTERNAL; +gint32 mono_decimal2Int64(/*[In]*/decimal_repr* pD, gint64* pResult) MONO_INTERNAL; +void mono_decimalFloorAndTrunc(/*[In, Out]*/decimal_repr* pD, gint32 floorFlag) MONO_INTERNAL; +void mono_decimalRound(/*[In, Out]*/decimal_repr* pD, gint32 decimals) MONO_INTERNAL; +gint32 mono_decimalMult(/*[In, Out]*/decimal_repr* pA, /*[In]*/decimal_repr* pB) MONO_INTERNAL; +gint32 mono_decimalDiv(/*[Out]*/decimal_repr* pC, /*[In]*/decimal_repr* pA, /*[In]*/decimal_repr* pB) MONO_INTERNAL; +gint32 mono_decimalIntDiv(/*[Out]*/decimal_repr* pC, /*[In]*/decimal_repr* pA, /*[In]*/decimal_repr* pB) MONO_INTERNAL; +gint32 mono_decimalCompare(/*[In]*/decimal_repr* pA, /*[In]*/decimal_repr* pB) MONO_INTERNAL; +double mono_decimal2double(/*[In]*/decimal_repr* pA) MONO_INTERNAL; +gint32 mono_decimalSetExponent(/*[In, Out]*/decimal_repr* pA, gint32 texp) MONO_INTERNAL; -gint32 mono_string2decimal(/*[Out]*/decimal_repr* pA, /*[In]*/MonoString* s, gint32 decrDecimal, gint32 sign); -gint32 mono_decimal2string(/*[In]*/decimal_repr* pA, int digits, int decimals, - /*[Out]*/MonoArray* pArray, gint32 bufSize, gint32* pDecPos, gint32* pSign); +gint32 mono_string2decimal(/*[Out]*/decimal_repr* pA, /*[In]*/MonoString* s, gint32 decrDecimal, gint32 sign) MONO_INTERNAL; +gint32 mono_decimal2string(/*[In]*/decimal_repr* pA, gint32 digits, gint32 decimals, + /*[Out]*/MonoArray* pArray, gint32 bufSize, gint32* pDecPos, gint32* pSign) MONO_INTERNAL;