diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:12 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:12 +0100 |
| commit | 98c02f78b26811ba5d9962ba27ec24cacf82bb22 (patch) | |
| tree | daaf609cde31d8fb3b6c3457c43663d14f0dda80 /lib/encode232.f90 | |
| parent | 332d2ce88c2f0bc2908cacdc6707e2f9fa49f26d (diff) | |
| parent | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (diff) | |
Update upstream source from tag 'upstream/2.7.0_rc8+repack'
Update to upstream version '2.7.0~rc8+repack'
with Debian dir 6fce941c8282d35c8df23d3de779a42e27688bc1
Diffstat (limited to 'lib/encode232.f90')
| -rwxr-xr-x | lib/encode232.f90 | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/lib/encode232.f90 b/lib/encode232.f90 index 6ce8e5eb..491f204a 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 |
