Changeset 591f084


Ignore:
Timestamp:
Jun 5, 2020, 3:38:58 PM (16 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
03045f18
Parents:
0da5cd5
Message:

Minor optimizations to snzi/snzm

Location:
doc/theses/thierry_delisle_PhD/code
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/thierry_delisle_PhD/code/snzi.hpp

    r0da5cd5 r591f084  
    2929
    3030private:
    31         class __attribute__((aligned(64))) node {
     31        class __attribute__((aligned(128))) node {
    3232                friend class snzi_t;
    3333        private:
  • doc/theses/thierry_delisle_PhD/code/snzm.hpp

    r0da5cd5 r591f084  
    3434
    3535private:
    36         class __attribute__((aligned(64))) node {
     36        class __attribute__((aligned(128))) node {
    3737                friend class snzm_t;
    3838        private:
     
    153153                        /* paranoid */ assert( (mask & ( 1 << bit )) == 0 );
    154154
     155                        arrive_h();
    155156                        __atomic_fetch_add( &mask, 1 << bit, __ATOMIC_RELAXED );
    156                         arrive_h();
     157                        // bts( (std::atomic_size_t&)mask, bit );
    157158
    158159                }
     
    162163                        /* paranoid */ assert( (mask & ( 1 << bit )) != 0 );
    163164
     165                        // btr( (std::atomic_size_t&)mask, bit );
     166                        __atomic_fetch_sub( &mask, 1 << bit, __ATOMIC_RELAXED );
    164167                        depart_h();
    165                         __atomic_fetch_sub( &mask, 1 << bit, __ATOMIC_RELAXED );
    166168                }
    167169
Note: See TracChangeset for help on using the changeset viewer.