From 8e706db21ecfba75da3f9f843f1fa36276085742 Mon Sep 17 00:00:00 2001 From: Tom Musta Date: Mon, 21 Apr 2014 15:54:53 -0500 Subject: libdecnumber: Introduce decNumberFrom[U]Int64 Introduce two conversion functions to the libdecnumber library. These conversions transform 64 bit integers to the internal decNumber representation. Both a signed and unsigned version is added. Signed-off-by: Tom Musta Signed-off-by: Alexander Graf --- include/libdecnumber/decNumber.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/libdecnumber/decNumber.h b/include/libdecnumber/decNumber.h index fb324bd35a..f4bf99417c 100644 --- a/include/libdecnumber/decNumber.h +++ b/include/libdecnumber/decNumber.h @@ -115,6 +115,8 @@ /* Conversions */ decNumber * decNumberFromInt32(decNumber *, int32_t); decNumber * decNumberFromUInt32(decNumber *, uint32_t); + decNumber *decNumberFromInt64(decNumber *, int64_t); + decNumber *decNumberFromUInt64(decNumber *, uint64_t); decNumber * decNumberFromString(decNumber *, const char *, decContext *); char * decNumberToString(const decNumber *, char *); char * decNumberToEngString(const decNumber *, char *); -- cgit v1.2.3