{"pub_number":"US8024552B2","doc_number":"8024552","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Performing variable and/or bitwise shift operation for a shift instruction that does not provide a variable or bitwise shift option","abstract_text":"Some embodiments present a method of performing a variable shift operation. This method can be used by a microprocessor that does not allow variable shift operation for certain operand sizes. The method simulates a shift instruction that shifts an operand by a shift count. The method identifies a first shift command and a second shift command. The method computes a mask value. The mask value depends on whether the shift count is less than half of the operand size or greater than or equal to half of the operand size. The method uses the mask value to cause one of the first shift command and the second shift command to produce no shift. In some embodiments, the method allows for the shift count to be specified in bytes or in bits.","claims":[{"number":1,"text":"A method of shifting content of a particular size in a register by a variable shift count using a microprocessor that does not allow a variable shift operation for an operand of the particular size, the method comprising: computing a number of bits to shift the content based on the variable shift count; determining, based on the number of bits to shift, whether shifting of the content is for “less than” or “greater than or equal to” half of the particular size; and performing two shift operations, wherein based on the determination, one of the two shifts performs a shift by 0 and the other shi","independent":true},{"number":2,"text":"The method of  claim 1 , wherein the register is a first register, the method further comprising shifting the content in the first register by half of a size of the register and storing a resultin","independent":false,"depends_on":[1]}],"description":"","inventors":[{"name":"Jeong Hyeonkuk","slug":"jeong-hyeonkuk","country":"US"},{"name":"Chang Paul","slug":"chang-paul","country":"US"}],"assignees":[{"name":"Apple Inc","slug":"apple-inc","country":"US"}],"examiners":["Li Aimee J"],"cpc_codes":["G06F 5/01","G06F 9/30032","G06F 9/3017","G06F 9/30181"],"ipc_codes":["G06F 9/315"],"filing_date":"2009-10-05","pub_date":"2011-09-20","grant_date":"2011-09-20","priority_date":"2005-06-05","expiration_date":"2029-10-05","application_number":"US-57387609-A","family_id":"FAM-37495388","family_members":[],"citations_made":[{"pub_number":"US4785393A","category":"APP"},{"pub_number":"EP0649224A1","category":"APP"},{"pub_number":"US5479527A","category":"APP"},{"pub_number":"US5526296A","category":"APP"},{"pub_number":"US5642115A","category":"APP"},{"pub_number":"US5651121A","category":"APP"},{"pub_number":"US5812701A","category":"APP"},{"pub_number":"US5913229A","category":"APP"},{"pub_number":"US5923871A","category":"SEA"},{"pub_number":"US6223277B1","category":"APP"},{"pub_number":"US2003041229A1","category":"APP"},{"pub_number":"US2004008711A1","category":"APP"},{"pub_number":"US2004153494A1","category":"SEA"},{"pub_number":"US2004210610A1","category":"SEA"},{"pub_number":"US2004267861A1","category":"SEA"},{"pub_number":"US2005099841A1","category":"SEA"},{"pub_number":"US7054367B2","category":"SEA"},{"pub_number":"US7320013B2","category":"SEA"},{"pub_number":"US7370184B2","category":"SEA"},{"pub_number":"US7373369B2","category":"SEA"},{"pub_number":"US7610472B2","category":"APP"},{"pub_number":"US7757066B2","category":"SEA"},{"pub_number":"US7921263B2","category":"SEA"}],"non_patent_literature":["Author Unknown, \"IA-32 Intel Architecture Software Developer's Manual,\" Month N/A 2003, p. 3-624, vol. 2: Instruction Set Reference, Intel Corporation, Colorado, USA.","U.S. Appl. No. 11/422,325, filed Sep. 18, 2009, Jeong, Hyeonkuk, et al."],"drawings_count":0,"source_id":"google_patents_public","upstream_forward_citations":0,"metrics":{"forward_citations":2,"indexed_forward_citations":2,"backward_citations":23,"npl_citations":2,"citations_per_year":0.13,"pagerank":0.9172971248626708,"citation_rank":43987461,"pagerank_rank":46748831,"velocity_rank":41859078,"family_citations":2}}