]> www.ginac.de Git - cln.git/blob - src/vector/cl_GV_number_copy.cc
- Fixed a logic error in the checks of gmp3.
[cln.git] / src / vector / cl_GV_number_copy.cc
1 // copy().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #define CL_GV_NO_RANGECHECKS
8 #include "cl_GV_number.h"
9
10
11 // Implementation.
12
13 const cl_GV_number copy (const cl_GV_number& v)
14 {
15         var uintL len = v.length();
16         var cl_GV_number w = cl_GV_number(len);
17         cl_GV_number::copy_elements(v,0,w,0,len);
18         return w;
19 }