Claims
- 1. A computer implemented method for translating a source sequence of ordered data units into a destination sequence having a different ordering of said data units, the method comprising the computer implemented steps of:
- using machine-specific data unit packing parameters to generate a source sequence signal, E.sub.S, which identifies the ordering of units within the source sequence;
- using machine-specific data unit packing parameters to generate a destination sequence signal, E.sub.D, which identifies the ordering of units within the destination sequence;
- combining the source sequence signal and the destination sequence signal to produce a permutation signal, E.sub.P, according to the formula:
- E.sub.P =(E.sub.S XOR E.sub.D)AND(n-1)
- where n is equal to the number of data units to be translated and is greater than two; and
- reordering the units from the source sequence in response to the permutation signal to produce a translated destination sequence.
- 2. The method for translating according to claim 1, wherein the data unit is an eight-bit byte.
- 3. The method for translating according to claim 1, wherein the data unit is a single bit.
- 4. The method for translating according to claim 1, wherein n is equal to 2 raised to an integer power.
- 5. The method for translating according to claim 1, wherein the step of reordering the data units of the source sequence comprises:
- determining a destination ordering index D(i) for each data unit of the source sequence based on a source ordering index S(i) of the unit's order in the source sequence, using the permutation signal, E.sub.P, according to the formula:
- D(i)=S(i XOR E.sub.P).
- 6. A computer system for translating a source sequence of n ordered data units into a desired destination sequence having a different ordering, the computer system comprising:
- means for using machine-specific data unit packing parameters to generate a source sequence signal, E.sub.S, which identifies the ordering of units within the source sequence;
- means for using machine-specific data unit packing parameters to generate a destination sequence signal, E.sub.D, which identifies the ordering of units within the destination sequence;
- means for combining the source sequence signal and destination sequence signal to produce a permutation signal, E.sub.P defined by the formula: E.sub.P =(E.sub.S XOR E.sub.D)AND(n-1) where n is greater than two; and
- means for reordering the units from the source sequence in response to the permutation signal to produce a translated destination sequence of data units.
- 7. The system for translating according to claim 6, wherein the data unit is an eight-bit byte.
- 8. The system for translating according to claim 6, wherein the data unit is a single bit.
- 9. The system for translating according to claim 6, wherein the means for reordering the data units of the source sequence comprises:
- means for determining a destination ordering index D(i) for each data unit of the source sequence using a source ordering index S(i) corresponding to each unit's location in the source sequence, and the permutation signal, E.sub.P, in the formula:
- D(i)=S(i XOR E.sub.P).
- 10. The system for translating according to claim 6, wherein n is equal to 2 raised to an integer power.
Parent Case Info
This is a continuation of application Ser. No. 08/058,429, filed on May 7, 1993, and now U.S. Pat. No. 5,524,256.
US Referenced Citations (7)
Continuations (1)
|
Number |
Date |
Country |
| Parent |
58429 |
May 1993 |
|