发明申请
- 专利标题: APPARATUS AND METHOD FOR CONVERTING DATA BETWEEN A FLOATING-POINT NUMBER AND AN INTEGER
- 专利标题(中): 用于转换浮点数和整数之间的数据的装置和方法
-
申请号: US13101356申请日: 2011-05-05
-
公开(公告)号: US20120124116A1公开(公告)日: 2012-05-17
- 发明人: Hyeong-Seok YU , Suk-Jin Kim , Sang-Su Park , Yong-Surk Lee
- 申请人: Hyeong-Seok YU , Suk-Jin Kim , Sang-Su Park , Yong-Surk Lee
- 优先权: KR10-2010-0114565 20101117
- 主分类号: G06F7/483
- IPC分类号: G06F7/483
摘要:
An apparatus and method for converting data between a floating-point number and an integer is provided. The apparatus includes a data converter configured to determine a sign of input binary data and an output format to which to convert the input binary data and convert the input binary data into a one's complement number based on the sign and the output format of the input binary data, a bias value generator configured to determine whether the input binary data has been rounded up based on a rounding mode of the input binary data and generate a bias value accordingly; and an adder configured to convert the input binary data into a two's complement number by adding the one's complement number and the bias value.
公开/授权文献
信息查询