summaryrefslogtreecommitdiff
path: root/lib/fst4/decode240_74.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2021-01-05 22:09:50 +0100
committerChristoph Berg <myon@debian.org>2021-01-05 22:09:50 +0100
commit061dc1a349738747489ef0c0ebeeb4443e369501 (patch)
treeb5671ff01ada5a62d6d91a54125a6bd6e3209021 /lib/fst4/decode240_74.f90
parent77922fa33547ce24535f2e514c9a112dcb496f18 (diff)
New upstream version 2.3.0~rc3+repackupstream/2.3.0_rc3+repack
Diffstat (limited to 'lib/fst4/decode240_74.f90')
-rw-r--r--lib/fst4/decode240_74.f908
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/fst4/decode240_74.f90 b/lib/fst4/decode240_74.f90
index be18f6e0..f5aac2e1 100644
--- a/lib/fst4/decode240_74.f90
+++ b/lib/fst4/decode240_74.f90
@@ -25,6 +25,8 @@ subroutine decode240_74(llr,Keff,maxosd,norder,apmask,message74,cw,ntype,nharder
include "ldpc_240_74_parity.f90"
maxiterations=30
+ if(Keff.eq.50) maxiterations=1
+
nosd=0
if(maxosd.gt.3) maxosd=3
if(maxosd.eq.0) then ! osd with channel llrs
@@ -36,6 +38,8 @@ subroutine decode240_74(llr,Keff,maxosd,norder,apmask,message74,cw,ntype,nharder
nosd=0
endif
+ if(maxosd.eq.0) goto 73
+
toc=0
tov=0
tanhtoc=0
@@ -133,9 +137,11 @@ subroutine decode240_74(llr,Keff,maxosd,norder,apmask,message74,cw,ntype,nharder
enddo ! bp iterations
+73 continue
do i=1,nosd
zn=zsave(:,i)
- call osd240_74(zn,Keff,apmask,norder,message74,cw,nharderror,dminosd)
+! call osd240_74(zn,Keff,apmask,norder,message74,cw,nharderror,dminosd)
+ call fastosd240_74(zn,Keff,apmask,norder,message74,cw,nharderror,dminosd)
if(nharderror.gt.0) then
hdec=0
where(llr .ge. 0) hdec=1