Changeset 661:99f32e967746
- Timestamp:
- 10/06/08 15:27:29
(2 months ago)
- Author:
- Christian Kamm <kamm incasoftware de>
- branch:
- default
- Message:
Simplify fp80 handling in DtoConstFP
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r653 |
r661 |
|
| 536 | 536 | uint64_t bits[] = {0, 0}; |
|---|
| 537 | 537 | bits[1] = *(uint16_t*)&value; |
|---|
| 538 | | bits[0] = *((uint16_t*)&value + 4); |
|---|
| 539 | | bits[0] <<= 16; |
|---|
| 540 | | bits[0] += *((uint16_t*)&value + 3); |
|---|
| 541 | | bits[0] <<= 16; |
|---|
| 542 | | bits[0] += *((uint16_t*)&value + 2); |
|---|
| 543 | | bits[0] <<= 16; |
|---|
| 544 | | bits[0] += *((uint16_t*)&value + 1); |
|---|
| | 538 | bits[0] = *(uint64_t*)((uint16_t*)&value + 1); |
|---|
| 545 | 539 | return LLConstantFP::get(APFloat(APInt(80, 2, bits))); |
|---|
| 546 | 540 | } else { |
|---|