Go to the documentation of this file.
54 integer(kind=8),
value :: ival
56 integer(kind=8),
parameter :: one=1
57 if(ival+one<ival)
then
75 integer(kind=4),
value :: ival
77 integer(kind=4),
parameter :: one=1
78 if(ival+one<ival)
then
96 integer(kind=2),
value :: ival
98 integer(kind=2),
parameter :: one=1
99 if(ival+one<ival)
then
117 integer(kind=1),
value :: ival
119 integer(kind=1),
parameter :: one=1
120 if(ival+one<ival)
then
137 integer(kind=8),
value :: i_in
142 if(iand(i,i-1)/=0)
then
146 if(iand(i,z
'FFFFFFFF00000000')/=0)
then
151 if(iand(i,z
'00000000FFFF0000')/=0)
then
156 if(iand(i,z
'000000000000FF00')/=0)
then
161 if(iand(i,z
'00000000000000F0')/=0)
then
166 if(iand(i,z
'000000000000000C')/=0)
then
171 if(iand(i,z
'0000000000000002')/=0)
then
188 integer(kind=4),
value :: i_in
193 if(iand(i,i-1)/=0)
then
197 if(iand(i,z
'FFFF0000')/=0)
then
202 if(iand(i,z
'0000FF00')/=0)
then
207 if(iand(i,z
'000000F0')/=0)
then
212 if(iand(i,z
'0000000C')/=0)
then
217 if(iand(i,z
'00000002')/=0)
then
234 integer(kind=2),
value :: i_in
239 if(iand(i,int(i-1,kind=2))/=0)
then
243 if(iand(i,z
'FF00')/=0)
then
248 if(iand(i,z
'00F0')/=0)
then
253 if(iand(i,z
'000C')/=0)
then
258 if(iand(i,z
'0002')/=0)
then
275 integer(kind=1),
value :: i_in
280 if(iand(i,int(i-1,kind=1))/=0)
then
284 if(iand(i,z
'F0')/=0)
then
289 if(iand(i,z
'0C')/=0)
then
294 if(iand(i,z
'02')/=0)
then
integer(kind=1) function i1log2_1(ival)
This function returns log(x+1)/log(2) unless x=maxint, in which case log(x)/log(2) for 1 bit integer ...
integer(kind=8) function ilog2_8(i_in)
This function returns log(x)/log(2) for 8 bit integer numbers.
integer(kind=8) function i1log2_8(ival)
This function returns log(x+1)/log(2) unless x=maxint, in which case log(x)/log(2) for 8 bit integer ...
integer(kind=2) function i1log2_2(ival)
This function returns log(x+1)/log(2) unless x=maxint, in which case log(x)/log(2) for 2 bit integer ...
integer(kind=1) function ilog2_1(i_in)
This function returns log(x)/log(2) for 1 bit integer numbers.
integer(kind=4) function ilog2_4(i_in)
This function returns log(x)/log(2) for 4 bit integer numbers.
integer(kind=2) function ilog2_2(i_in)
This function returns log(x)/log(2) for 2 bit integer numbers.
This module defines integer math functions used by other programs.
integer(kind=4) function i1log2_4(ival)
This function returns log(x+1)/log(2) unless x=maxint, in which case log(x)/log(2) for 4 bit integer ...