A method of performing interleaving or deinterleaving in a communication system
having at least one interleaver at the transmitter and at least one deinterleaver
at the receiver. The method includes interleaving or deinterleaving the input bit
sequence xn as follows: yn=xn,
n=0, . . . , N-1, using a bridge function between n and n, n=0,
. . . , N-1, based on a spline linear model. When the system includes a first and
a second interleaving or deinterleaving, the method is performed for both. When
the second interleaving or deinterleaving includes adding padding bits, the location
in the interleaved or deinterleaved bit sequence of the padding bits is determined
and interleaving or deinterleaving for the determined locations is skipped.