syslib_proto.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 class syslib
00021 {
00022 public:
00023
00024 template<typename eT>
00025 arma_inline
00026 static
00027 void
00028 copy_elem(eT* dest, const eT* src, const u32 n_elem)
00029 {
00030 if( n_elem <= (128/sizeof(eT)) )
00031 {
00032 for(u32 i=0; i<n_elem; ++i)
00033 {
00034 dest[i] = src[i];
00035 }
00036 }
00037 else
00038 {
00039 std::memcpy(dest, src, n_elem*sizeof(eT));
00040 }
00041
00042 }
00043
00044 };
00045
00046
00047