diff options
| author | Christoph Berg <myon@debian.org> | 2026-06-22 12:03:44 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-06-22 12:03:44 +0200 |
| commit | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (patch) | |
| tree | 6d9c83527c56458a8360ba080bf5f4ca73d526dc /map65/libm65/set.f90 | |
| parent | 4b089ae3f7e9e2d5662f718f663b26a4e8ee63ca (diff) | |
New upstream version 3.0.2+dfsgupstream/3.0.2+dfsg
Diffstat (limited to 'map65/libm65/set.f90')
| -rw-r--r-- | map65/libm65/set.f90 | 47 |
1 files changed, 16 insertions, 31 deletions
diff --git a/map65/libm65/set.f90 b/map65/libm65/set.f90 index ff767988..4bf3a30f 100644 --- a/map65/libm65/set.f90 +++ b/map65/libm65/set.f90 @@ -1,31 +1,16 @@ -subroutine set(a,y,n) - real y(n) - do i=1,n - y(i)=a - enddo - return -end subroutine set - -subroutine move(x,y,n) - real x(n),y(n) - do i=1,n - y(i)=x(i) - enddo - return -end subroutine move - -subroutine zero(x,n) - real x(n) - do i=1,n - x(i)=0.0 - enddo - return -end subroutine zero - -subroutine add(a,b,c,n) - real a(n),b(n),c(n) - do i=1,n - c(i)=a(i)+b(i) - enddo - return -end subroutine add +module set_mod + implicit none +contains + + subroutine move(x,y,n) + implicit none + integer, intent(in) :: n + integer, intent(in) :: x(n) + integer, intent(out) :: y(n) + integer :: i + do i=1,n + y(i)=x(i) + enddo + end subroutine move + +end module set_mod |
