Changeset 81b1db8 in mainline for uspace/lib/softrend/filter.c


Ignore:
Timestamp:
2018-03-26T15:26:27Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
41bbab6
Parents:
fd57745c
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-26 15:21:43)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-26 15:26:27)
Message:

Avoid using standard C function names for local functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/softrend/filter.c

    rfd57745c r81b1db8  
    3939
    4040
    41 static long round(double val)
     41static long _round(double val)
    4242{
    4343        return val > 0 ? (long) (val + 0.5) : (long) (val - 0.5);
    4444}
    4545
    46 static long floor(double val)
     46static long _floor(double val)
    4747{
    4848        long lval = (long) val;
     
    5252}
    5353
    54 static long ceil(double val)
     54static long _ceil(double val)
    5555{
    5656        long lval = (long) val;
     
    7979    pixelmap_extend_t extend)
    8080{
    81         return pixelmap_get_extended_pixel(pixmap, round(x), round(y), extend);
     81        return pixelmap_get_extended_pixel(pixmap, _round(x), _round(y), extend);
    8282}
    8383
     
    8585    pixelmap_extend_t extend)
    8686{
    87         long x1 = floor(x);
    88         long x2 = ceil(x);
    89         long y1 = floor(y);
    90         long y2 = ceil(y);
     87        long x1 = _floor(x);
     88        long x2 = _ceil(x);
     89        long y1 = _floor(y);
     90        long y2 = _ceil(y);
    9191
    9292        if (y1 == y2 && x1 == x2) {
Note: See TracChangeset for help on using the changeset viewer.