aboutsummaryrefslogtreecommitdiffstats
path: root/src/bn_c_impl.hpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2017-06-14 04:22:35 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2017-06-14 04:22:35 +0800
commit053d76dd58386c5d57f1f9fcf8c56b6945a0d550 (patch)
tree3ef59549e882d30c916b0d338603367948de1de0 /src/bn_c_impl.hpp
parent16d7e2a33c3b69143b0a53803867966471c9d98b (diff)
downloadtangerine-mcl-053d76dd58386c5d57f1f9fcf8c56b6945a0d550.tar.gz
tangerine-mcl-053d76dd58386c5d57f1f9fcf8c56b6945a0d550.tar.zst
tangerine-mcl-053d76dd58386c5d57f1f9fcf8c56b6945a0d550.zip
add mclBnGT_setInt
Diffstat (limited to 'src/bn_c_impl.hpp')
-rw-r--r--src/bn_c_impl.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bn_c_impl.hpp b/src/bn_c_impl.hpp
index 5262cbe..26eea30 100644
--- a/src/bn_c_impl.hpp
+++ b/src/bn_c_impl.hpp
@@ -418,6 +418,11 @@ void mclBnGT_clear(mclBnGT *x)
{
cast(x)->clear();
}
+void mclBnGT_setInt(mclBnGT *y, int64_t x)
+{
+ cast(y)->clear();
+ *(cast(y)->getFp0()) = x;
+}
int mclBnGT_setStr(mclBnGT *x, const char *buf, size_t bufSize, int ioMode)
{