--- trunk/xvidcore/examples/xvid_bench.c 2008/11/26 23:37:28 1804 +++ trunk/xvidcore/examples/xvid_bench.c 2008/12/02 13:44:55 1839 @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: xvid_bench.c,v 1.38 2008-11-26 23:37:28 Isibaar Exp $ + * $Id: xvid_bench.c,v 1.39 2008-12-02 13:44:55 Isibaar Exp $ * ****************************************************************************/ @@ -47,6 +47,7 @@ #include "xvid.h" // inner guts +#include "portab.h" #include "dct/idct.h" #include "dct/fdct.h" #include "image/colorspace.h" @@ -2205,6 +2206,13 @@ int width, height; uint32_t chksum = 0; const char * test_bitstream = 0; +#if defined(WIN32) && defined(ARCH_IS_X86_64) + DECLARE_ALIGNED_MATRIX(xmm_save, 2, 4, uint64_t, 16); + // assumes xmm6 and xmm7 won't be falsely preserved by C code + for(c=0;c<4;c++) + xmm_save[c] = read_counter(); + prime_xmm(xmm_save); +#endif cpu_mask = 0; // default => will use autodectect for(c=1; c= 0 && what <= 6) || what == 10) { printf("\n\n" "NB: If a function isn't optimised for a specific set of intructions,\n"