summaryrefslogtreecommitdiff
path: root/lib/encode232.f90
diff options
context:
space:
mode:
authortony mancill <tmancill@debian.org>2026-04-12 08:46:47 -0700
committertony mancill <tmancill@debian.org>2026-04-12 08:46:47 -0700
commitcd2dad3bc7ae0ee0a18b7b20a945009362ec3851 (patch)
tree5a622ec4193e9bc899f6499f936848a661be29cb /lib/encode232.f90
parent558c0b9d6ecf70c5222e2069ece1fea3656c75d7 (diff)
parent291b3817bf0c7a742e9e17d42c94fc8c9530e40d (diff)
Merge branch 'debian/latest' into debian/trixie-backports
Diffstat (limited to 'lib/encode232.f90')
-rw-r--r--[-rwxr-xr-x]lib/encode232.f9066
1 files changed, 33 insertions, 33 deletions
diff --git a/lib/encode232.f90 b/lib/encode232.f90
index 6ce8e5eb..491f204a 100755..100644
--- 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