Patent ID: 9740484
Date: 2017-08-22
CPC Classifications: G06F

Claim:
1. A method comprising: executing an instruction to get bits for an operation, the instruction identifying a start bit address and a number of bits to be retrieved; determining whether the bits identified by the start bit address and number of bits are stored in a bit-oriented register or cache; when not, then determining a start byte address and a number of bytes to be retrieved form a byte-oriented memory by converting the start bit address and the number of bits identified by the instruction to the start byte address and the number of bytes respectively; retrieving the bytes identified by the start byte address and the number of bytes from the byte-oriented memory; discarding unwanted bits from at least one of the first byte and the last byte retrieved from the byte-oriented memory, wherein discarding the unwanted bits includes bit shifting; and performing a sequence of specified bit operations on the remaining bits after the bit shifting to generate results.