Changeset b336613f in mainline


Ignore:
Timestamp:
2014-12-11T23:50:45Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6d7d4f1
Parents:
3385dd3
Message:

fix floating point truncation arithmetics
(this solves most of the ppc32 hard float glitches)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/math/generic/trunc.c

    r3385dd3 rb336613f  
    6868        } else {
    6969                /* Truncate irrelevant fraction bits */
    70                 val.parts.fraction &= UINT64_C(0x000fffffffffffff) >> exp;
     70                val.parts.fraction &= ~(UINT64_C(0x000fffffffffffff) >> exp);
    7171        }
    7272       
Note: See TracChangeset for help on using the changeset viewer.