Invention Grant
- Patent Title: Adding signed 8/16/32-bit integers to 64-bit integers
- Patent Title (中): 将带符号的8/16/32位整数添加到64位整数
-
Application No.: US12567267Application Date: 2009-09-25
-
Publication No.: US08819622B2Publication Date: 2014-08-26
- Inventor: Thomas M. Deneau
- Applicant: Thomas M. Deneau
- Applicant Address: US CA Sunnyvale
- Assignee: Advanced Micro Devices, Inc.
- Current Assignee: Advanced Micro Devices, Inc.
- Current Assignee Address: US CA Sunnyvale
- Agency: Volpe and Koenig, P.C.
- Main IPC: G06F9/44
- IPC: G06F9/44

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
- US20110078653A1 ADDING SIGNED 8/16/32-BIT INTEGERS TO 64-BIT INTEGERS Public/Granted day:2011-03-31
Information query