Skip to content

Commit 7370020

Browse files
committed
move swap bitset within same fypp loop as for integers and reals
1 parent c2a0bad commit 7370020

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/stdlib_math.fypp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
module stdlib_math
66
use stdlib_kinds, only: int8, int16, int32, int64, sp, dp, xdp, qp
77
use stdlib_optval, only: optval
8+
use stdlib_bitsets, only: bitset_64, bitset_large
89

910
implicit none
1011
private
@@ -526,7 +527,7 @@ contains
526527

527528
#:endfor
528529

529-
#:for k1, t1 in INT_KINDS_TYPES + REAL_KINDS_TYPES
530+
#:for k1, t1 in INT_KINDS_TYPES + REAL_KINDS_TYPES + BITSET_KINDS_TYPES
530531
elemental subroutine swap_${k1}$(lhs, rhs)
531532
${t1}$, intent(inout) :: lhs, rhs
532533
${t1}$ :: temp
@@ -562,15 +563,5 @@ contains
562563
type(string_type) :: temp
563564
temp = lhs ; lhs = rhs ; rhs = temp
564565
end subroutine
565-
566-
#:for k1, t1 in BITSET_KINDS_TYPES
567-
elemental subroutine swap_${k1}$(lhs,rhs)
568-
use stdlib_bitsets
569-
${t1}$, intent(inout) :: lhs, rhs
570-
${t1}$ :: temp
571-
temp = lhs ; lhs = rhs ; rhs = temp
572-
end subroutine
573-
574-
#:endfor
575566

576567
end module stdlib_math

0 commit comments

Comments
 (0)