Changeset 2152


Ignore:
Timestamp:
01/26/12 14:52:27 (4 months ago)
Author:
becoulet
Message:

obfuscated bytes-enable mask computation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soclib/soclib/communication/vci/caba/source/include/vci_param.h

    r1571 r2152  
    160160    static inline fast_data_t be2mask( fast_data_t be ) 
    161161    { 
     162        fast_data_t ret = (be * 0x0100040010004000ULL | be * 0x0002000800200080ULL) & 0x8080808080808080ULL; 
     163        ret |= ret >> 1; ret |= ret >> 2; ret |= ret >> 4; 
     164#if 0 
    162165        fast_data_t ret = 0; 
    163166        const fast_data_t be_up = 1 << (B - 1); 
     
    169172            be <<= 1; 
    170173        } 
     174#endif 
    171175        return ret; 
    172176    } 
Note: See TracChangeset for help on using the changeset viewer.