sw/lib/mpi/mpi_internal.h
// store only a part of a flit in memory
// Use byte stores to avoid unaligned memory accesses.
store only a part of a flit in memory
Use byte stores to avoid unaligned memory accesses.
store only a part of a flit in memory Use byte stores to avoid unaligned memory accesses .
static inline void store_flit_fraction(void *d, unsigned len, flit_t f)
{
    assert(__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__);
    unsigned i;
    for (i=0; i<len; i++) {
        ((char *)d)[i] = f;
        f >>= 8;
    }
}
static inline void store_flit_fraction ( void * d , unsigned len , flit_t f ) { assert ( __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ ) ; unsigned i ; for ( i = 0 ; i < len ; i ++ ) { ( ( char * ) d ) [ i ] = f ; f >>= 8 ; } }
store only a part of a flit in memory
Use byte stores to avoid unaligned memory accesses.
store only a part of a flit in memory Use byte stores to avoid unaligned memory accesses .
//    flit_t m = ((flit_t)(-2)<<(8*len-1)); //    unaligned_store_flit(d, ((unaligned_load_flit(d) ^ f) & m) ^ f);