[xiph-commits] r11347 - in branches/theora-mmx/lib: . x86_32 x86_64
giles at svn.xiph.org
giles at svn.xiph.org
Fri May 5 19:27:15 PDT 2006
Author: giles
Date: 2006-05-05 19:27:13 -0700 (Fri, 05 May 2006)
New Revision: 11347
Modified:
branches/theora-mmx/lib/dsp.c
branches/theora-mmx/lib/x86_32/dsp_mmx.c
branches/theora-mmx/lib/x86_32/dsp_mmxext.c
branches/theora-mmx/lib/x86_32/fdct_mmx.c
branches/theora-mmx/lib/x86_32/recon_mmx.c
branches/theora-mmx/lib/x86_64/dsp_mmx.c
branches/theora-mmx/lib/x86_64/dsp_mmxext.c
branches/theora-mmx/lib/x86_64/fdct_mmx.c
branches/theora-mmx/lib/x86_64/recon_mmx.c
Log:
Add debug printfs so we can tell what asm is getting used. Of course
libraries should never spew like this; we'll need to remove before a
release.
Modified: branches/theora-mmx/lib/dsp.c
===================================================================
--- branches/theora-mmx/lib/dsp.c 2006-05-06 02:07:18 UTC (rev 11346)
+++ branches/theora-mmx/lib/dsp.c 2006-05-06 02:27:13 UTC (rev 11347)
@@ -15,6 +15,7 @@
********************************************************************/
+#include <stdio.h>
#include <stdlib.h>
#include "cpu.h"
#include "dsp.h"
@@ -386,6 +387,7 @@
void dsp_init(DspFunctions *funcs)
{
+ fprintf(stderr, "setting dsp functions to C defaults.\n");
funcs->save_fpu = nop;
funcs->restore_fpu = nop;
funcs->sub8x8 = sub8x8__c;
Modified: branches/theora-mmx/lib/x86_32/dsp_mmx.c
===================================================================
--- branches/theora-mmx/lib/x86_32/dsp_mmx.c 2006-05-06 02:07:18 UTC (rev 11346)
+++ branches/theora-mmx/lib/x86_32/dsp_mmx.c 2006-05-06 02:27:13 UTC (rev 11347)
@@ -15,6 +15,7 @@
********************************************************************/
+#include <stdio.h>
#include <stdlib.h>
#include "dsp.h"
@@ -626,6 +627,7 @@
void dsp_mmx_init(DspFunctions *funcs)
{
+ fprintf(stderr, "enabling accelerated x86_32 mmx dsp functions.\n");
funcs->restore_fpu = restore_fpu;
funcs->sub8x8 = sub8x8__mmx;
funcs->sub8x8_128 = sub8x8_128__mmx;
Modified: branches/theora-mmx/lib/x86_32/dsp_mmxext.c
===================================================================
--- branches/theora-mmx/lib/x86_32/dsp_mmxext.c 2006-05-06 02:07:18 UTC (rev 11346)
+++ branches/theora-mmx/lib/x86_32/dsp_mmxext.c 2006-05-06 02:27:13 UTC (rev 11347)
@@ -15,6 +15,7 @@
********************************************************************/
+#include <stdio.h>
#include <stdlib.h>
#include "dsp.h"
@@ -306,6 +307,7 @@
void dsp_mmxext_init(DspFunctions *funcs)
{
+ fprintf(stderr, "enabling accelerated x86_32 mmxext dsp functions.\n");
funcs->row_sad8 = row_sad8__mmxext;
funcs->col_sad8x8 = col_sad8x8__mmxext;
funcs->sad8x8 = sad8x8__mmxext;
Modified: branches/theora-mmx/lib/x86_32/fdct_mmx.c
===================================================================
--- branches/theora-mmx/lib/x86_32/fdct_mmx.c 2006-05-06 02:07:18 UTC (rev 11346)
+++ branches/theora-mmx/lib/x86_32/fdct_mmx.c 2006-05-06 02:27:13 UTC (rev 11347)
@@ -9,6 +9,7 @@
;//
;//--------------------------------------------------------------------------
+#include <stdio.h>
#include <theora/theora.h>
#include "dsp.h"
@@ -336,5 +337,6 @@
void dsp_mmx_fdct_init(DspFunctions *funcs)
{
+ fprintf(stderr, "enabling accelerated x86_32 mmx fdct function.\n");
funcs->fdct_short = fdct_short__mmx;
}
Modified: branches/theora-mmx/lib/x86_32/recon_mmx.c
===================================================================
--- branches/theora-mmx/lib/x86_32/recon_mmx.c 2006-05-06 02:07:18 UTC (rev 11346)
+++ branches/theora-mmx/lib/x86_32/recon_mmx.c 2006-05-06 02:27:13 UTC (rev 11347)
@@ -15,6 +15,7 @@
********************************************************************/
+#include <stdio.h>
#include "codec_internal.h"
static const __attribute__ ((aligned(8),used)) ogg_int64_t V128 = 0x8080808080808080LL;
@@ -177,6 +178,7 @@
void dsp_mmx_recon_init(DspFunctions *funcs)
{
+ fprintf(stderr, "enabling accelerated x86_32 mmx recon functions.\n");
funcs->copy8x8 = copy8x8__mmx;
funcs->recon_intra8x8 = recon_intra8x8__mmx;
funcs->recon_inter8x8 = recon_inter8x8__mmx;
Modified: branches/theora-mmx/lib/x86_64/dsp_mmx.c
===================================================================
--- branches/theora-mmx/lib/x86_64/dsp_mmx.c 2006-05-06 02:07:18 UTC (rev 11346)
+++ branches/theora-mmx/lib/x86_64/dsp_mmx.c 2006-05-06 02:27:13 UTC (rev 11347)
@@ -15,6 +15,7 @@
********************************************************************/
+#include <stdio.h>
#include <stdlib.h>
#include "dsp.h"
@@ -284,6 +285,7 @@
void dsp_i386_mmx_init(DspFunctions *funcs)
{
+ fprintf(stderr, "setting accelerated x86_64 mmx dsp functions.\n");
funcs->restore_fpu = restore_fpu;
funcs->sub8x8 = sub8x8__mmx;
funcs->sub8x8_128 = sub8x8_128__mmx;
Modified: branches/theora-mmx/lib/x86_64/dsp_mmxext.c
===================================================================
--- branches/theora-mmx/lib/x86_64/dsp_mmxext.c 2006-05-06 02:07:18 UTC (rev 11346)
+++ branches/theora-mmx/lib/x86_64/dsp_mmxext.c 2006-05-06 02:27:13 UTC (rev 11347)
@@ -15,6 +15,7 @@
********************************************************************/
+#include <stdio.h>
#include <stdlib.h>
#include "dsp.h"
@@ -306,6 +307,7 @@
void dsp_i386_mmxext_init(DspFunctions *funcs)
{
+ fprintf(stderr, "enabling accerated x86_64 mmxext dsp functions.\n");
funcs->row_sad8 = row_sad8__mmxext;
funcs->col_sad8x8 = col_sad8x8__mmxext;
funcs->sad8x8 = sad8x8__mmxext;
Modified: branches/theora-mmx/lib/x86_64/fdct_mmx.c
===================================================================
--- branches/theora-mmx/lib/x86_64/fdct_mmx.c 2006-05-06 02:07:18 UTC (rev 11346)
+++ branches/theora-mmx/lib/x86_64/fdct_mmx.c 2006-05-06 02:27:13 UTC (rev 11347)
@@ -9,6 +9,7 @@
;//
;//--------------------------------------------------------------------------
+#include <stdio.h>
#include <theora/theora.h>
#include "dsp.h"
@@ -343,5 +344,6 @@
void dsp_i386_mmx_fdct_init(DspFunctions *funcs)
{
+ fprintf(stderr, "enabling accelerated x86_64 mmx fdct function.\n");
funcs->fdct_short = fdct_short__mmx;
}
Modified: branches/theora-mmx/lib/x86_64/recon_mmx.c
===================================================================
--- branches/theora-mmx/lib/x86_64/recon_mmx.c 2006-05-06 02:07:18 UTC (rev 11346)
+++ branches/theora-mmx/lib/x86_64/recon_mmx.c 2006-05-06 02:27:13 UTC (rev 11347)
@@ -15,6 +15,7 @@
********************************************************************/
+#include <stdio.h>
#include "codec_internal.h"
static const __attribute__ ((aligned(8),used)) ogg_int64_t V128 = 0x8080808080808080LL;
@@ -171,6 +172,7 @@
void dsp_i386_mmx_recon_init(DspFunctions *funcs)
{
+ fprintf(stderr, "enabling accelerated x86_64 mmx recon functions.\n");
funcs->copy8x8 = copy8x8__mmx;
funcs->recon_intra8x8 = recon_intra8x8__mmx;
funcs->recon_inter8x8 = recon_inter8x8__mmx;
More information about the commits
mailing list