Changeset 66:96bbc9fdd23d in rrlib_util


Ignore:
Timestamp:
09.10.2012 19:33:41 (7 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Fixes with respect to tagged pointers on 32 bit platforms.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tagged_pointer/tTaggedPointerImplementation.h

    r65 r66  
    208208const uint32_t STAMP3_MASK =    0x00000007; 
    209209 
    210 static_assert(sizeof(void*) == 4, "Architecture not supported yet. However, it should not be too much effort to do so.") 
     210static_assert(sizeof(void*) == 4, "Architecture not supported yet. However, it should not be too much effort to do so."); 
    211211 
    212212template <> 
  • test/test_tagged_pointers.cpp

    r65 r66  
    7575{ 
    7676  // Some variables of type T 
     77  __attribute__((aligned(8))) // aligment required on 32 bit platforms 
    7778  T array[10]; 
     79  __attribute__((aligned(8))) // aligment required on 32 bit platforms 
    7880  T single_value; 
    7981  std::vector<std::unique_ptr<T>> allocated_values; 
     
    110112    pointer.Set(allocated_values[idx].get(), random); 
    111113    assert(pointer.GetPointer() == allocated_values[idx].get() && pointer.GetStamp() == random); 
    112     RRLIB_LOG_PRINT(DEBUG, allocated_values[idx].get(), " ptr: ", pointer.GetPointer(), " stamp: ", pointer.GetStamp()); 
     114    //RRLIB_LOG_PRINT(DEBUG, allocated_values[idx].get(), " ptr: ", pointer.GetPointer(), " stamp: ", pointer.GetStamp()); 
    113115    random = uniform_int_distribution(eng) & tPointer::cSTAMP_MASK; 
    114116    pointer.SetPointer(&array[idx]); 
Note: See TracChangeset for help on using the changeset viewer.