git: machine/endian.h: Mark bswap functions always inlineable.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Mon Oct 24 05:15:19 PDT 2016


commit c1a702737a6ddb5bc4882e9bb185de0040155dd0
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Oct 11 12:49:46 2016 +0300

    machine/endian.h: Mark bswap functions always inlineable.
    
    This solves many cases where compiler decides to make them as a local
    static functions to prevent code size growth and causing -Winline.
    Also then it leads to less optimal code generation.
    To prevent all of this just mark them as always inlineable.
    These functions are intended to be inlined and should be thought as macros.

Summary of changes:
 sys/cpu/x86_64/include/endian.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c1a702737a6ddb5bc4882e9bb185de0040155dd0


-- 
DragonFly BSD source repository



More information about the Commits mailing list