NCEPLIBS-g2  3.5.0
intmath::ilog2 Interface Reference

Public Member Functions

integer(kind=1) function ilog2_1 (i_in)
 This function returns log(x)/log(2) for 1 bit integer numbers. More...
 
integer(kind=2) function ilog2_2 (i_in)
 This function returns log(x)/log(2) for 2 bit integer numbers. More...
 
integer(kind=4) function ilog2_4 (i_in)
 This function returns log(x)/log(2) for 4 bit integer numbers. More...
 
integer(kind=8) function ilog2_8 (i_in)
 This function returns log(x)/log(2) for 8 bit integer numbers. More...
 

Detailed Description

Definition at line 25 of file intmath.F90.

Member Function/Subroutine Documentation

◆ ilog2_1()

integer(kind=1) function intmath::ilog2::ilog2_1 ( integer(kind=1), value  i_in)

This function returns log(x)/log(2) for 1 bit integer numbers.

Parameters
[in]i_in1 bit integer numbers.
Returns
value for log(x)/log(2)
Author
Stephen Gilbert
Date
2000-06-21

Definition at line 241 of file intmath.F90.

References intmath::ilog2_1().

◆ ilog2_2()

integer(kind=2) function intmath::ilog2::ilog2_2 ( integer(kind=2), value  i_in)

This function returns log(x)/log(2) for 2 bit integer numbers.

Parameters
[in]i_in2 bit integer numbers.
Returns
value for log(x)/log(2)
Author
Stephen Gilbert
Date
2000-06-21

Definition at line 204 of file intmath.F90.

References intmath::ilog2_2().

◆ ilog2_4()

integer(kind=4) function intmath::ilog2::ilog2_4 ( integer(kind=4), value  i_in)

This function returns log(x)/log(2) for 4 bit integer numbers.

Parameters
[in]i_in4 bit integer numbers.
Returns
value for log(x)/log(2)
Author
Stephen Gilbert
Date
2000-06-21

Definition at line 162 of file intmath.F90.

References intmath::ilog2_4().

◆ ilog2_8()

integer(kind=8) function intmath::ilog2::ilog2_8 ( integer(kind=8), value  i_in)

This function returns log(x)/log(2) for 8 bit integer numbers.

Parameters
[in]i_in8 bit integer numbers.
Returns
value for log(x)/log(2)
Author
Stephen Gilbert
Date
2000-06-21

Definition at line 115 of file intmath.F90.

References intmath::ilog2_8().


The documentation for this interface was generated from the following file: