Changeset e6f5766 in mainline for uspace/lib/math/arch/amd64/include


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/arch/amd64/include/libarch/math.h

    r01cdd5a re6f5766  
    5454static inline float64_t ceil(float64_t val)
    5555{
    56         float64_u arg;
    57         arg.val = val;
    58        
    59         float64_u ret;
    60         ret.data = ceil_float64(arg.data);
    61        
    62         return ret.val;
     56        return float64_ceil(val);
    6357}
    6458
     
    7569static inline float64_t floor(float64_t val)
    7670{
    77         float64_u arg;
    78         arg.val = val;
    79        
    80         float64_u ret;
    81         ret.data = floor_float64(arg.data);
    82        
    83         return ret.val;
     71        return float64_floor(val);
    8472}
    8573
Note: See TracChangeset for help on using the changeset viewer.