]> www.ginac.de Git - cln.git/blob - src/integer/bitwise/cl_I_dpb.cc
Finalize CLN 1.3.7 release.
[cln.git] / src / integer / bitwise / cl_I_dpb.cc
1 // dpb().
2
3 // General includes.
4 #include "base/cl_sysdep.h"
5
6 // Specification.
7 #include "cln/integer.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 dpb (const cl_I& newbyte, const cl_I& n, const cl_byte& b)
18 {
19       // Methode:
20       // (DPB newbyte (byte s p) integer)
21       // = (DEPOSIT-FIELD (ASH newbyte p) (byte s p) integer)
22       return deposit_field(ash(newbyte,b.position),n,b);
23 }
24
25 }  // namespace cln