diff options
author | Tom Musta | 2014-04-21 22:54:53 +0200 |
---|---|---|
committer | Alexander Graf | 2014-06-16 13:24:29 +0200 |
commit | 8e706db21ecfba75da3f9f843f1fa36276085742 (patch) | |
tree | 6f87bf3754b5c1ff98ee225cbe347695d52524eb /include | |
parent | target-ppc: Enable Building of libdecnumber (diff) | |
download | qemu-8e706db21ecfba75da3f9f843f1fa36276085742.tar.gz qemu-8e706db21ecfba75da3f9f843f1fa36276085742.tar.xz qemu-8e706db21ecfba75da3f9f843f1fa36276085742.zip |
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 <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/libdecnumber/decNumber.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 *); |