Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcc_mpfr.c')
-rw-r--r--src/rcc_mpfr.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/rcc_mpfr.c b/src/rcc_mpfr.c
index 8a362e3..7703b1e 100644
--- a/src/rcc_mpfr.c
+++ b/src/rcc_mpfr.c
@@ -1,5 +1,5 @@
/*
-Copyright 2015 Ian Jauslin
+Copyright 2015-2022 Ian Jauslin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -65,6 +65,13 @@ int RCC_mpfr_cpy(RCC_mpfr input,RCC_mpfr* output){
}
return(0);
}
+int RCC_mpfr_cpy_noinit(RCC_mpfr input,RCC_mpfr* output){
+ int i;
+ for(i=0;i<input.length;i++){
+ RCC_mpfr_set_elem(input.values[i], input.indices[i], output, i);
+ }
+ return(0);
+}
// concatenate rcc_mpfr
int RCC_mpfr_concat(RCC_mpfr rcc_mpfr1, RCC_mpfr rcc_mpfr2, RCC_mpfr* output){