]> www.ginac.de Git - cln.git/blob - src/integer/bitwise/cl_I_fullbyte.cc
Make scale_float() not throw a floating_point_underflow_exception...
[cln.git] / src / integer / bitwise / cl_I_fullbyte.cc
1 // cl_fullbyte().
2
3 // General includes.
4 #include "base/cl_sysdep.h"
5
6 // Specification.
7 #include "integer/bitwise/cl_I_byte.h"
8
9
10 // Implementation.
11
12 #include "cln/integer.h"
13 #include "integer/cl_I.h"
14
15 namespace cln {
16
17 const cl_I cl_fullbyte (uintC p, uintC q)
18 {
19         if (p==q)
20                 return 0;
21         else
22                 return ash(-1,(cl_I)(unsigned long)p) + ash(1,(cl_I)(unsigned long)q);
23 }
24
25 }  // namespace cln