#ifndef __PROCESSCOMMON_HPP__ #define __PROCESSCOMMON_HPP__ #include <assert.h> #include <stddef.h> #include <stdint.h> template<class T> static size_t GetLeastError( const T* err, size_t num ) { … } static uint64_t FixByteOrder( uint64_t d ) { … } template<class T, class S> static uint64_t EncodeSelectors( uint64_t d, const T terr[2][8], const S tsel[16][8], const uint32_t* id ) { … } #endif