Changeset 10703 for trunk


Ignore:
Timestamp:
05/13/11 15:08:23 (14 years ago)
Author:
tbretz
Message:
Moved Reverse functions to ByteOrder.h
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ByteOrder.h

    r10702 r10703  
    124124}
    125125
     126template<typename T>
     127void Reverse(T *t)
     128{
     129    std::reverse((uint16_t*)t, ((uint16_t*)t)+sizeof(T)/2);
     130}
     131
    126132#endif
  • trunk/FACT++/src/HeadersFTM.h

    r10702 r10703  
    6060
    6161    // --------------------------------------------------------------------
    62 
    63     template<typename T>
    64         void Reverse(T *t)
    65     {
    66         std::reverse((uint16_t*)t, ((uint16_t*)t)+sizeof(T)/2);
    67     }
    6862
    6963    enum
Note: See TracChangeset for help on using the changeset viewer.