Invention Grant
US08819622B2 Adding signed 8/16/32-bit integers to 64-bit integers 有权
将带符号的8/16/32位整数添加到64位整数

Adding signed 8/16/32-bit integers to 64-bit integers
Abstract:
Disclosed are methods, apparatus, and computer-readable media for generating output computer code that adds a 64-bit integer to a smaller-length integer having a length of less than 64 bits. Input computer code includes a loop that includes adding a 64-bit integer and a smaller-length integer. Output code is generated that represents the input code in a format such as assembly language or machine code. The output code includes instructions to convert the smaller-length integer to a 64-bit integer, such that the conversion is not performed during each loop execution. The smaller-length integer is converted by subtracting an offset from the 64-bit integer, adding the offset to the smaller-length integer, and zero-extending the smaller-length integer. The offset is determined based on the length of the smaller-length integer. The output code preserves the integer semantics of the smaller-length integer as required by the input code.
Public/Granted literature
Information query
Patent Agency Ranking
0/0