@@ -44,19 +44,25 @@ module stdlib_str2num
44
44
45
45
interface to_num
46
46
#:for k1, t1 in (INT_KINDS_TYPES + REAL_KINDS_TYPES)
47
+ #:if k1 != "xdp"
47
48
module procedure to_${k1}$
49
+ #:endif
48
50
#:endfor
49
51
end interface
50
52
51
53
interface to_num_p
52
54
#:for k1, t1 in (INT_KINDS_TYPES + REAL_KINDS_TYPES)
55
+ #:if k1 != "xdp"
53
56
module procedure to_${k1}$_p
57
+ #:endif
54
58
#:endfor
55
59
end interface
56
60
57
61
interface to_num_base
58
62
#:for k1, t1 in (INT_KINDS_TYPES + REAL_KINDS_TYPES)
63
+ #:if k1 != "xdp"
59
64
module procedure to_${k1}$_base
65
+ #:endif
60
66
#:endfor
61
67
end interface
62
68
@@ -67,6 +73,7 @@ module stdlib_str2num
67
73
!---------------------------------------------
68
74
69
75
#:for k1, t1 in (INT_KINDS_TYPES + REAL_KINDS_TYPES)
76
+ #:if k1 != "xdp"
70
77
elemental function to_${k1}$(s,mold) result(v)
71
78
! -- In/out Variables
72
79
character(*), intent(in) :: s !> input string
@@ -95,12 +102,14 @@ module stdlib_str2num
95
102
if(present(stat)) stat = err
96
103
end function
97
104
105
+ #:endif
98
106
#:endfor
99
107
!---------------------------------------------
100
108
! String To Number Implementations
101
109
!---------------------------------------------
102
110
103
111
#:for k1, t1 in INT_KINDS_TYPES
112
+ #:if k1 != "xdp"
104
113
elemental subroutine to_${k1}$_base(s,v,p,stat)
105
114
!> Return an unsigned 32-bit integer
106
115
! -- In/out Variables
@@ -128,6 +137,7 @@ module stdlib_str2num
128
137
stat = 0
129
138
end subroutine
130
139
140
+ #:endif
131
141
#:endfor
132
142
133
143
elemental subroutine to_sp_base(s,v,p,stat)
@@ -322,7 +332,7 @@ module stdlib_str2num
322
332
end subroutine
323
333
324
334
#:if WITH_QP
325
- subroutine to_qp_base(s,v,p,stat)
335
+ elemental subroutine to_qp_base(s,v,p,stat)
326
336
integer, parameter :: wp = qp
327
337
!> Sequentially unroll the character and get the sub integers composing the whole number, fraction and exponent
328
338
! -- In/out Variables
0 commit comments