]> www.ginac.de Git - cln.git/blob - src/integer/bitwise/cl_I_dpb.cc
fc642255bd82dc6d12047d8cfe459fa6527cdb1a
[cln.git] / src / integer / bitwise / cl_I_dpb.cc
1 // dpb().
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cl_integer.h"
8
9
10 // Implementation.
11
12 #include "cl_integer.h"
13 #include "cl_I.h"
14
15 const cl_I dpb (const cl_I& newbyte, const cl_I& n, const cl_byte& b)
16 {
17       // Methode:
18       // (DPB newbyte (byte s p) integer)
19       // = (DEPOSIT-FIELD (ASH newbyte p) (byte s p) integer)
20       return deposit_field(ash(newbyte,b.position),n,b);
21 }