bctoi_I1P Function

private elemental function bctoi_I1P(bstr, knd) result(n)

Arguments

TypeIntentOptionalAttributesName
character, intent(in) :: bstr
integer(kind=I1P), intent(in) :: knd

Return Value integer(kind=I1P)


Calls

proc~~bctoi_i1p~~CallsGraph proc~bctoi_i1p bctoi_I1P interface~str str proc~bctoi_i1p->interface~str proc~str_i8p str_I8P interface~str->proc~str_i8p proc~str_a_r8p str_a_R8P interface~str->proc~str_a_r8p proc~str_r8p str_R8P interface~str->proc~str_r8p proc~str_a_i4p str_a_I4P interface~str->proc~str_a_i4p proc~strf_i2p strf_I2P interface~str->proc~strf_i2p proc~str_r4p str_R4P interface~str->proc~str_r4p proc~str_i1p str_I1P interface~str->proc~str_i1p proc~strf_i4p strf_I4P interface~str->proc~strf_i4p proc~str_a_r4p str_a_R4P interface~str->proc~str_a_r4p proc~strf_r4p strf_R4P interface~str->proc~strf_r4p proc~str_i2p str_I2P interface~str->proc~str_i2p proc~str_a_i2p str_a_I2P interface~str->proc~str_a_i2p proc~strf_i8p strf_I8P interface~str->proc~strf_i8p proc~str_bol str_bol interface~str->proc~str_bol proc~strf_r8p strf_R8P interface~str->proc~strf_r8p proc~str_i4p str_I4P interface~str->proc~str_i4p proc~str_a_i8p str_a_I8P interface~str->proc~str_a_i8p proc~strf_i1p strf_I1P interface~str->proc~strf_i1p proc~str_a_i1p str_a_I1P interface~str->proc~str_a_i1p proc~str_a_r8p->proc~str_r8p proc~compact_real_string compact_real_string proc~str_r8p->proc~compact_real_string proc~str_a_i4p->proc~str_i4p proc~str_r4p->proc~compact_real_string proc~str_a_r4p->proc~str_r4p proc~str_a_i2p->proc~str_i2p proc~str_a_i8p->proc~str_i8p proc~str_a_i1p->proc~str_i1p

Called by

proc~~bctoi_i1p~~CalledByGraph proc~bctoi_i1p bctoi_I1P interface~bcton bcton interface~bcton->proc~bctoi_i1p program~volatile_doctest~258 volatile_doctest program~volatile_doctest~258->interface~bcton program~volatile_doctest~412 volatile_doctest program~volatile_doctest~412->interface~bcton program~volatile_doctest~612 volatile_doctest program~volatile_doctest~612->interface~bcton program~volatile_doctest~420 volatile_doctest program~volatile_doctest~420->interface~bcton program~volatile_doctest~436 volatile_doctest program~volatile_doctest~436->interface~bcton program~volatile_doctest~810 volatile_doctest program~volatile_doctest~810->interface~bcton program~volatile_doctest~818 volatile_doctest program~volatile_doctest~818->interface~bcton program~volatile_doctest~834 volatile_doctest program~volatile_doctest~834->interface~bcton program~volatile_doctest~982 volatile_doctest program~volatile_doctest~982->interface~bcton program~volatile_doctest~990 volatile_doctest program~volatile_doctest~990->interface~bcton program~volatile_doctest~407 volatile_doctest program~volatile_doctest~407->interface~bcton program~volatile_doctest~415 volatile_doctest program~volatile_doctest~415->interface~bcton program~volatile_doctest~813 volatile_doctest program~volatile_doctest~813->interface~bcton program~volatile_doctest~1217 volatile_doctest program~volatile_doctest~1217->interface~bcton program~volatile_doctest~1164 volatile_doctest program~volatile_doctest~1164->interface~bcton program~volatile_doctest~1188 volatile_doctest program~volatile_doctest~1188->interface~bcton program~volatile_doctest~1172 volatile_doctest program~volatile_doctest~1172->interface~bcton program~volatile_doctest~288 volatile_doctest program~volatile_doctest~288->interface~bcton program~volatile_doctest~642 volatile_doctest program~volatile_doctest~642->interface~bcton program~volatile_doctest~37 volatile_doctest program~volatile_doctest~37->interface~bcton program~volatile_doctest~235 volatile_doctest program~volatile_doctest~235->interface~bcton program~volatile_doctest~243 volatile_doctest program~volatile_doctest~243->interface~bcton program~volatile_doctest~259 volatile_doctest program~volatile_doctest~259->interface~bcton program~volatile_doctest~589 volatile_doctest program~volatile_doctest~589->interface~bcton program~volatile_doctest~597 volatile_doctest program~volatile_doctest~597->interface~bcton program~volatile_doctest~613 volatile_doctest program~volatile_doctest~613->interface~bcton program~volatile_doctest~1159 volatile_doctest program~volatile_doctest~1159->interface~bcton program~volatile_doctest~1167 volatile_doctest program~volatile_doctest~1167->interface~bcton program~volatile_doctest~230 volatile_doctest program~volatile_doctest~230->interface~bcton program~volatile_doctest~238 volatile_doctest program~volatile_doctest~238->interface~bcton program~volatile_doctest~584 volatile_doctest program~volatile_doctest~584->interface~bcton program~volatile_doctest~592 volatile_doctest program~volatile_doctest~592->interface~bcton program~volatile_doctest~1010 volatile_doctest program~volatile_doctest~1010->interface~bcton program~volatile_doctest~67 volatile_doctest program~volatile_doctest~67->interface~bcton program~volatile_doctest~435 volatile_doctest program~volatile_doctest~435->interface~bcton program~volatile_doctest~805 volatile_doctest program~volatile_doctest~805->interface~bcton program~volatile_doctest~833 volatile_doctest program~volatile_doctest~833->interface~bcton program~volatile_doctest~22 volatile_doctest program~volatile_doctest~22->interface~bcton program~volatile_doctest~14 volatile_doctest program~volatile_doctest~14->interface~bcton program~volatile_doctest~38 volatile_doctest program~volatile_doctest~38->interface~bcton program~volatile_doctest~1040 volatile_doctest program~volatile_doctest~1040->interface~bcton program~volatile_doctest~9 volatile_doctest program~volatile_doctest~9->interface~bcton program~volatile_doctest~17 volatile_doctest program~volatile_doctest~17->interface~bcton program~volatile_doctest~465 volatile_doctest program~volatile_doctest~465->interface~bcton program~volatile_doctest~863 volatile_doctest program~volatile_doctest~863->interface~bcton program~volatile_doctest~987 volatile_doctest program~volatile_doctest~987->interface~bcton program~volatile_doctest~995 volatile_doctest program~volatile_doctest~995->interface~bcton program~volatile_doctest~1011 volatile_doctest program~volatile_doctest~1011->interface~bcton program~volatile_doctest~1187 volatile_doctest program~volatile_doctest~1187->interface~bcton

Contents

Source Code


Source Code

   elemental function bctoi_I1P(bstr, knd) result(n)
   !< Convert bit-string to integer.
   !<
   !<```fortran
   !< use penf
   !< print FI1P, bcton('00000001', knd=1_I1P)
   !<```
   !=> 1 <<<
   character(*), intent(in) :: bstr !< String containing input number.
   integer(I1P), intent(in) :: knd  !< Number kind.
   integer(I1P)             :: n    !< Number returned.

   read(bstr,'(B'//trim(str(bit_size(knd), .true.))//'.'//trim(str(bit_size(knd), .true.))//')') n
   endfunction bctoi_I1P