Changeset e6f5766 in mainline for uspace/lib/math/generic/ceil.c


Ignore:
Timestamp:
2015-09-05T10:11:40Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9adb61d
Parents:
01cdd5a
Message:

Use floatN_t types in generic function interfaces.

File:
1 edited

Legend:

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

    r01cdd5a re6f5766  
    4343 * @return Number rounded towards positive infinity.
    4444 */
    45 float64 ceil_float64(float64 val)
     45float64_t float64_ceil(float64_t val)
    4646{
    4747        float64_u t;
     
    4949        float64_u r;
    5050       
    51         v.data = val;
    52         t.data = trunc_float64(val);
     51        v.val = val;
     52        t.val = float64_trunc(val);
    5353       
    54         if (val.parts.sign == 1 || v.val == t.val) {
     54        if (v.data.parts.sign == 1 || val == t.val) {
    5555                r = t;
    5656        } else {
     
    5858        }
    5959       
    60         return r.data;
     60        return r.val;
    6161}
    6262
Note: See TracChangeset for help on using the changeset viewer.