Invention Grant
- Patent Title: Method for floating point round to integer operation
- Patent Title (中): 浮点整数运算方法
-
Application No.: US12549724Application Date: 2009-08-28
-
Publication No.: US08407271B2Publication Date: 2013-03-26
- Inventor: Kevin Hurd , Daryl Lieu , Kelvin Goveas , Scott Hilker
- Applicant: Kevin Hurd , Daryl Lieu , Kelvin Goveas , Scott Hilker
- Applicant Address: US CA Sunnyvale
- Assignee: Advanced Micro Devices, Inc.
- Current Assignee: Advanced Micro Devices, Inc.
- Current Assignee Address: US CA Sunnyvale
- Agency: Meyertons, Hood, Kivlin, Kowert & Goetzel, P.C.
- Agent Rory D. Rankin
- Main IPC: G06F7/38
- IPC: G06F7/38

Abstract:
An apparatus and method for computing a rounded floating point number. A floating point unit (FPU) receives an instruction to round a floating point number to a nearest integral value and retrieves a binary source operand having an exponent of a fixed first number of bits and a mantissa of a fixed second number of bits. If the unbiased exponent value is greater than or equal to zero and less than the fixed second number, the FPU generates a mask having N consecutive ‘1’ bits beginning with the least significant bit and whose remaining bits have a value of ‘0’, where N is equal to the fixed second number minus the unbiased exponent value. The FPU computes a bitwise OR of the source operand with the mask, increments the result if the instruction is to round up, and computes a bitwise AND of the result with the inverse of the mask.
Public/Granted literature
- US20110055307A1 METHOD FOR FLOATING POINT ROUND TO INTEGER OPERATION Public/Granted day:2011-03-03
Information query