diff options
author | austriancoder <austriancoder> | 2005-08-15 17:18:40 +0000 |
---|---|---|
committer | austriancoder <austriancoder> | 2005-08-15 17:18:40 +0000 |
commit | 8955b4dfa419698ecb853bb8f1cdc1fe96d206d6 (patch) | |
tree | 2ec35c50a4c8feb54f6c6fe48710d6a48bfc2ea6 /dxr3memcpy.h | |
parent | e4c44acfc5421d0794dcbc777202378f35a187e8 (diff) | |
download | vdr-plugin-dxr3-8955b4dfa419698ecb853bb8f1cdc1fe96d206d6.tar.gz vdr-plugin-dxr3-8955b4dfa419698ecb853bb8f1cdc1fe96d206d6.tar.bz2 |
HEAD should have files of 0.2.3 release
Diffstat (limited to 'dxr3memcpy.h')
-rw-r--r-- | dxr3memcpy.h | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/dxr3memcpy.h b/dxr3memcpy.h deleted file mode 100644 index 8ee6601..0000000 --- a/dxr3memcpy.h +++ /dev/null @@ -1,99 +0,0 @@ -/* - * dxr3memcpy.h - * - * Copyright (C) 2004 Christian Gmeiner - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public License - * as published by the Free Software Foundation; either version 2.1 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - * - */ - -/***************************************************************************** - * memcpy.h: functions and definitions of the MMX/MMX2/SSE optimized versions - * of memcpy - ***************************************************************************** - * Copyright (C) 2001 Keuleu - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - ***************************************************************************** - * - * Original code: - * - * Copyright (C) 2000-2001 the xine project - * - * This file is part of xine, a unix video player. - * - *****************************************************************************/ - -#ifndef _DXR3MEMCPY_H_ -#define _DXR3MEMCPY_H_ - -#include "dxr3vdrincludes.h" - -// ================================== -/*! \def BUFSIZE - \brief size of buffers for benchmark :) -*/ -#define BUFSIZE 1024*1024 - -// ================================== -struct memcpy_routine -{ - std::string name; ///< name of memcpy methode - void *(* function)(void *to, const void *from, size_t len); ///< our memcopy methode - unsigned long long time; ///< needed time for banchmark - uint32_t cpu_require; ///< caps from dxr3cpu.h -}; - -// ================================== -//! Little class to do a nice benchmark -/* - Whith this class we can get the fastest memcyp - methode for target computer. -*/ -class cDxr3MemcpyBench -{ -public: - cDxr3MemcpyBench(uint32_t config_flags = 0); - -private: - unsigned long long int Rdtsc(uint32_t config_flags); - - std::vector<memcpy_routine> m_methods; ///< a std::vector with all methodes -}; - -// ================================== -//! optimized/fast memcpy -extern void *(* dxr3_memcpy)(void *to, const void *from, size_t len); - -#endif /*_DXR3MEMCPY_H_*/ - -// Local variables: -// mode: c++ -// c-file-style: "stroustrup" -// c-file-offsets: ((inline-open . 0)) -// indent-tabs-mode: t -// End: |