US2008301416A1PendingUtilityA1

System and program product of doing pack unicode z series instructions

Assignee: IBMPriority: Feb 20, 2007Filed: Jul 30, 2008Published: Dec 4, 2008
Est. expiryFeb 20, 2027(~0.6 yrs left)· nominal 20-yr term from priority
H03M 7/30
40
PatentIndex Score
0
Cited by
0
References
0
Claims

Abstract

Emulation methods are provided for two PACK instructions, one for Unicode data and the other for ASCII coded data in which processing is carried out in a block-by-block fashion as opposed to a byte-by-byte fashion as a way to provide superior performance in the face of the usual challenges facing the execution of emulated data processing machine instructions as opposed to native instructions.

Claims

exact text as granted — not AI-modified
1 . A computer program product comprising a machine readable medium having instructions encoded therein for packing data from a Unicode field to a field which is approximately half as wide, said method comprising the steps of: retrieving input data to be packed from a memory and storing it in an offset position in memory locations which represent a local array of bytes; setting a source pointer to point to the data at address “local array+2”; setting a target pointer to point to a position in memory location which represents a local array pack array which holds operation results;
 computing a first byte of a present block of the output as: (((BLOCK & 0x000F000F000F000F)<<12) | ((BLOCK & 0x000F000F000F000F)<<24)) & 0xFF0000000000000), where “BLOCK” represents said block of said input data;   generating the three remaining bytes of the present block by shifting and then ORing the byte to the 4-byte output block incrementing said pointers and repeating the previous two steps four times, once for each said block; setting the last nibble to 0xC; and storing said pack array in said memory.   
   
   
       2 . A data processing system having including a memory for stored program execution by said system, said memory having code therein for: retrieving input data to be packed from a memory and storing it in an offset position in memory locations which represent a local array of bytes; setting a source pointer to point to the data at address “local array+2”; setting a target pointer to point to a position in memory location which represents a local array pack array which holds operation results; computing a first byte of a present block of the output as: (((BLOCK & 0x000F000F000F000F)<<12) | ((BLOCK & 0x000F000F000F000F)<<24)) & 0xFF0000000000000), where “BLOCK” represents said block of said input data; generating the three remaining bytes of the present block by shifting and then ORing the byte to the 4-byte output block incrementing said pointers and repeating the previous two steps four times, once for each said block; setting the last nibble to 0xC; and storing said pack array in said memory.

Join the waitlist — get patent alerts

Track US2008301416A1 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.