summaryrefslogtreecommitdiff
path: root/lib/encode232.f90
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2022-08-23 10:23:31 +0200
committerChristoph Berg <christoph.berg@credativ.de>2022-08-23 10:23:31 +0200
commit0e579a45e2e5823f90e2632073749583cd15fa0d (patch)
tree5e709e13d41c8ea0da0968fb6c4566057b4b7909 /lib/encode232.f90
parent28d1767618141cd6481de2e93e36e3dfa555d4b4 (diff)
parent2d1068e60bce7ae1fff11623454900e8cee956b1 (diff)
Update upstream source from tag 'upstream/2.6.0_rc3+repack'
Update to upstream version '2.6.0~rc3+repack' with Debian dir 9ee8bc3a4b60bb88f4d57c7d1f2d37dbc1632144
Diffstat (limited to 'lib/encode232.f90')
-rwxr-xr-xlib/encode232.f9066
1 files changed, 33 insertions, 33 deletions
diff --git a/lib/encode232.f90 b/lib/encode232.f90
index 491f204a..6ce8e5eb 100755
--- a/lib/encode232.f90
+++ b/lib/encode232.f90
@@ -1,33 +1,33 @@
-subroutine encode232(dat,nsym,symbol)
-
-! Convolutional encoder for a K=32, r=1/2 code.
-
- integer*1 dat(13) !User data, packed 8 bits per byte
- integer*1 symbol(206) !Channel symbols, one bit per byte
- integer*1 i1
- include 'conv232.f90'
-
- nstate=0
- k=0
- do j=1,nsym
- do i=7,0,-1
- i1=dat(j)
- i4=i1
- if (i4.lt.0) i4=i4+256
- nstate=ior(ishft(nstate,1),iand(ishft(i4,-i),1))
- n=iand(nstate,npoly1)
- n=ieor(n,ishft(n,-16))
- k=k+1
- symbol(k)=partab(iand(ieor(n,ishft(n,-8)),255))
- n=iand(nstate,npoly2)
- n=ieor(n,ishft(n,-16))
- k=k+1
- symbol(k)=partab(iand(ieor(n,ishft(n,-8)),255))
- if(k.ge.nsym) go to 100
- enddo
- enddo
-
-100 continue
-
- return
-end subroutine encode232
+subroutine encode232(dat,nsym,symbol)
+
+! Convolutional encoder for a K=32, r=1/2 code.
+
+ integer*1 dat(13) !User data, packed 8 bits per byte
+ integer*1 symbol(206) !Channel symbols, one bit per byte
+ integer*1 i1
+ include 'conv232.f90'
+
+ nstate=0
+ k=0
+ do j=1,nsym
+ do i=7,0,-1
+ i1=dat(j)
+ i4=i1
+ if (i4.lt.0) i4=i4+256
+ nstate=ior(ishft(nstate,1),iand(ishft(i4,-i),1))
+ n=iand(nstate,npoly1)
+ n=ieor(n,ishft(n,-16))
+ k=k+1
+ symbol(k)=partab(iand(ieor(n,ishft(n,-8)),255))
+ n=iand(nstate,npoly2)
+ n=ieor(n,ishft(n,-16))
+ k=k+1
+ symbol(k)=partab(iand(ieor(n,ishft(n,-8)),255))
+ if(k.ge.nsym) go to 100
+ enddo
+ enddo
+
+100 continue
+
+ return
+end subroutine encode232