Ignore:
Timestamp:
Oct 8, 2022, 4:29:32 PM (19 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
301071a, affb51b
Parents:
b2ddaf3
Message:

add attribute always_inline to many CFA-library cover-routines to force inlining

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/bitmanip.hfa

    rb2ddaf3 r95bda0a  
    1111// Created On       : Sat Mar 14 18:12:27 2020
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Sun Aug 23 21:39:28 2020
    14 // Update Count     : 140
     13// Last Modified On : Sat Oct  8 08:28:15 2022
     14// Update Count     : 142
    1515//
    1616
     
    2121// Bits are numbered 1-N.
    2222
    23 #include <assert.h>
    24 
    2523#define __bitsizeof( n ) (sizeof(n) * __CHAR_BIT__)
    2624
    27 static inline {
     25static inline __attribute__((always_inline)) {
    2826        // Count leading 0 bits.
    2927        unsigned int leading0s( unsigned char n ) { return n != 0 ? __builtin_clz( n ) - (__bitsizeof(unsigned int) - __bitsizeof(n)) : __bitsizeof(n); }
Note: See TracChangeset for help on using the changeset viewer.