Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Changeset 661:99f32e967746

Show
Ignore:
Timestamp:
10/06/08 15:27:29 (3 months ago)
Author:
Christian Kamm <kamm incasoftware de>
branch:
default
Message:

Simplify fp80 handling in DtoConstFP

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gen/tollvm.cpp

    r653 r661  
    536536        uint64_t bits[] = {0, 0}; 
    537537        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); 
    545539        return LLConstantFP::get(APFloat(APInt(80, 2, bits))); 
    546540    } else { 
Copyright © 2008, LDC Development Team.