log2 Interface

public interface log2

Utility function to compute the base-2 logarithm of a real number.


Module Procedures

private pure function log2_rsp(x) result(y)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(in) :: x

Return Value real(kind=sp)

private pure function log2_rdp(x) result(y)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: x

Return Value real(kind=dp)