Changeset 2416085 in mainline for uspace/lib/softfloat/common.c
- Timestamp:
- 2012-09-07T13:59:45Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ecd991a
- Parents:
- 77f91fe
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/softfloat/common.c
r77f91fe r2416085 34 34 */ 35 35 36 #include <sftypes.h>37 #include <common.h>36 #include "sftypes.h" 37 #include "common.h" 38 38 39 39 /* Table for fast leading zeroes counting. */ … … 57 57 }; 58 58 59 /** 59 /** 60 60 * Take fraction shifted by 10 bits to the left, round it, normalize it 61 61 * and detect exceptions … … 75 75 while ((cexp > 0) && (cfrac) && 76 76 (!(cfrac & (FLOAT64_HIDDEN_BIT_MASK << (64 - FLOAT64_FRACTION_SIZE - 1))))) { 77 cexp--; 77 cexp--; 78 78 cfrac <<= 1; 79 79 /* TODO: fix underflow */ … … 110 110 ++cexp; 111 111 cfrac >>= 1; 112 } 112 } 113 113 114 114 /* check overflow */
Note:
See TracChangeset
for help on using the changeset viewer.