]> www.ginac.de Git - cln.git/blob - src/integer/bitwise/cl_I_fullbyte.cc
* All Files have been modified for inclusion of namespace cln;
[cln.git] / src / integer / bitwise / cl_I_fullbyte.cc
1 // cl_fullbyte().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_I_byte.h"
8
9
10 // Implementation.
11
12 #include "cln/integer.h"
13 #include "cl_I.h"
14
15 namespace cln {
16
17 const cl_I cl_fullbyte (uintL p, uintL q)
18 {
19         if (p==q)
20                 return 0;
21         else
22                 return ash(-1,UL_to_I(p)) + ash(1,UL_to_I(q));
23 }
24
25 }  // namespace cln