summaryrefslogtreecommitdiff
path: root/lib/update_hasharray.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
committerChristoph Berg <myon@debian.org>2018-12-19 22:58:32 +0100
commite0737c56c1e384e05064a0c6e1ac46979371041b (patch)
treea0123d694a2d36c43dabdf0a3907392fce11d457 /lib/update_hasharray.f90
parentb4aebf2d137b892f53503b13785ecae900062ff7 (diff)
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'lib/update_hasharray.f90')
-rw-r--r--lib/update_hasharray.f9018
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/update_hasharray.f90 b/lib/update_hasharray.f90
index 0f9c872e..baf50329 100644
--- a/lib/update_hasharray.f90
+++ b/lib/update_hasharray.f90
@@ -1,21 +1,21 @@
-subroutine update_hasharray(recent_calls,nrecent,nhasharray)
-
- character*12 recent_calls(nrecent)
- character*22 hashmsg
- integer nhasharray(nrecent,nrecent)
+subroutine update_hasharray(nhasharray)
+
+ use packjt77
+ character*37 hashmsg
+ integer nhasharray(MAXRECENT,MAXRECENT)
nhasharray=-1
- do i=1,nrecent
- do j=i+1,nrecent
+ do i=1,MAXRECENT
+ do j=i+1,MAXRECENT
if( recent_calls(i)(1:1) .ne. ' ' .and. recent_calls(j)(1:1) .ne. ' ' ) then
hashmsg=trim(recent_calls(i))//' '//trim(recent_calls(j))
call fmtmsg(hashmsg,iz)
- call hash(hashmsg,22,ihash)
+ call hash(hashmsg,37,ihash)
ihash=iand(ihash,4095)
nhasharray(i,j)=ihash
hashmsg=trim(recent_calls(j))//' '//trim(recent_calls(i))
call fmtmsg(hashmsg,iz)
- call hash(hashmsg,22,ihash)
+ call hash(hashmsg,37,ihash)
ihash=iand(ihash,4095)
nhasharray(j,i)=ihash
endif