[xiph-commits] r11441 - in trunk/theora/lib: x86_32 x86_64
giles at svn.xiph.org
giles at svn.xiph.org
Sat May 27 10:09:10 PDT 2006
Author: giles
Date: 2006-05-27 10:09:08 -0700 (Sat, 27 May 2006)
New Revision: 11441
Modified:
trunk/theora/lib/x86_32/dsp_mmx.c
trunk/theora/lib/x86_32/dsp_mmxext.c
trunk/theora/lib/x86_32/fdct_mmx.c
trunk/theora/lib/x86_32/recon_mmx.c
trunk/theora/lib/x86_64/dsp_mmx.c
trunk/theora/lib/x86_64/dsp_mmxext.c
trunk/theora/lib/x86_64/fdct_mmx.c
trunk/theora/lib/x86_64/recon_mmx.c
Log:
Clean up the copyright and comment headers of the mmx fdct
implementations and turn on keyword substitution.
Modified: trunk/theora/lib/x86_32/dsp_mmx.c
===================================================================
--- trunk/theora/lib/x86_32/dsp_mmx.c 2006-05-27 05:18:37 UTC (rev 11440)
+++ trunk/theora/lib/x86_32/dsp_mmx.c 2006-05-27 17:09:08 UTC (rev 11441)
@@ -11,7 +11,7 @@
********************************************************************
function:
- last mod: $Id: mcomp.c,v 1.8 2003/12/03 08:59:41 arc Exp $
+ last mod: $Id$
********************************************************************/
Property changes on: trunk/theora/lib/x86_32/dsp_mmx.c
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/theora/lib/x86_32/dsp_mmxext.c
===================================================================
--- trunk/theora/lib/x86_32/dsp_mmxext.c 2006-05-27 05:18:37 UTC (rev 11440)
+++ trunk/theora/lib/x86_32/dsp_mmxext.c 2006-05-27 17:09:08 UTC (rev 11441)
@@ -11,7 +11,7 @@
********************************************************************
function:
- last mod: $Id: mcomp.c,v 1.8 2003/12/03 08:59:41 arc Exp $
+ last mod: $Id$
********************************************************************/
Property changes on: trunk/theora/lib/x86_32/dsp_mmxext.c
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/theora/lib/x86_32/fdct_mmx.c
===================================================================
--- trunk/theora/lib/x86_32/fdct_mmx.c 2006-05-27 05:18:37 UTC (rev 11440)
+++ trunk/theora/lib/x86_32/fdct_mmx.c 2006-05-27 17:09:08 UTC (rev 11441)
@@ -1,14 +1,18 @@
-;//==========================================================================
-;//
-;// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
-;// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
-;// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
-;// PURPOSE.
-;//
-;// Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
-;//
-;//--------------------------------------------------------------------------
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE Theora SOURCE CODE IS COPYRIGHT (C) 1999-2001 *
+ * by the Xiph.Org Foundation http://www.xiph.org/ *
+ * *
+ ********************************************************************/
+/* mmx fdct implementation */
+/* $Id$ */
+
#include "theora/theora.h"
#include "codec_internal.h"
#include "dsp.h"
@@ -28,23 +32,6 @@
# define M(a) #a
#endif
-/***********************************************************************
- * File: fdct_m.asm
- *
- * Description:
- * This function perform 2-D Forward DCT on a 8x8 block
- *
- *
- * Input: Pointers to input source data buffer and destination
- * buffer.
- *
- * Note: none
- *
- * Special Notes: We try to do the truncation right to match the result
- * of the c version.
- *
- ************************************************************************/
-
/* execute stage 1 of forward DCT */
#define Fdct_mmx(ip0,ip1,ip2,ip3,ip4,ip5,ip6,ip7,temp) \
" movq " #ip0 ", %%mm0 \n\t" \
@@ -299,6 +286,9 @@
" movq %%mm2," #op2 " \n\t"
+/* This performs a 2D Forward DCT on an 8x8 block with short
+ coefficients. We try to do the truncation to match the C
+ version. */
static void fdct_short__mmx ( ogg_int16_t *InputData, ogg_int16_t *OutputData)
{
ogg_int64_t __attribute__((aligned(8))) align_tmp[16];
@@ -335,6 +325,7 @@
);
}
+/* install our implementation in the function table */
void dsp_mmx_fdct_init(DspFunctions *funcs)
{
TH_DEBUG("enabling accelerated x86_32 mmx fdct function.\n");
Property changes on: trunk/theora/lib/x86_32/fdct_mmx.c
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/theora/lib/x86_32/recon_mmx.c
===================================================================
--- trunk/theora/lib/x86_32/recon_mmx.c 2006-05-27 05:18:37 UTC (rev 11440)
+++ trunk/theora/lib/x86_32/recon_mmx.c 2006-05-27 17:09:08 UTC (rev 11441)
@@ -11,7 +11,7 @@
********************************************************************
function:
- last mod: $Id: reconstruct.c,v 1.6 2003/12/03 08:59:41 arc Exp $
+ last mod: $Id$
********************************************************************/
Property changes on: trunk/theora/lib/x86_32/recon_mmx.c
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/theora/lib/x86_64/dsp_mmx.c
===================================================================
--- trunk/theora/lib/x86_64/dsp_mmx.c 2006-05-27 05:18:37 UTC (rev 11440)
+++ trunk/theora/lib/x86_64/dsp_mmx.c 2006-05-27 17:09:08 UTC (rev 11441)
@@ -11,7 +11,7 @@
********************************************************************
function:
- last mod: $Id: mcomp.c,v 1.8 2003/12/03 08:59:41 arc Exp $
+ last mod: $Id$
********************************************************************/
Property changes on: trunk/theora/lib/x86_64/dsp_mmx.c
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/theora/lib/x86_64/dsp_mmxext.c
===================================================================
--- trunk/theora/lib/x86_64/dsp_mmxext.c 2006-05-27 05:18:37 UTC (rev 11440)
+++ trunk/theora/lib/x86_64/dsp_mmxext.c 2006-05-27 17:09:08 UTC (rev 11441)
@@ -11,7 +11,7 @@
********************************************************************
function:
- last mod: $Id: mcomp.c,v 1.8 2003/12/03 08:59:41 arc Exp $
+ last mod: $Id$
********************************************************************/
Property changes on: trunk/theora/lib/x86_64/dsp_mmxext.c
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/theora/lib/x86_64/fdct_mmx.c
===================================================================
--- trunk/theora/lib/x86_64/fdct_mmx.c 2006-05-27 05:18:37 UTC (rev 11440)
+++ trunk/theora/lib/x86_64/fdct_mmx.c 2006-05-27 17:09:08 UTC (rev 11441)
@@ -1,14 +1,18 @@
-;//==========================================================================
-;//
-;// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
-;// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
-;// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
-;// PURPOSE.
-;//
-;// Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
-;//
-;//--------------------------------------------------------------------------
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
+ * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
+ * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
+ * *
+ * THE Theora SOURCE CODE IS COPYRIGHT (C) 1999-2006 *
+ * by the Xiph.Org Foundation http://www.xiph.org/ *
+ * *
+ ********************************************************************/
+/* mmx fdct implementation for x86_64 */
+/* $Id$ */
+
#include "theora/theora.h"
#include "codec_internal.h"
#include "dsp.h"
@@ -28,23 +32,6 @@
# define M(a) #a
#endif
-/***********************************************************************
- * File: fdct_m.asm
- *
- * Description:
- * This function perform 2-D Forward DCT on a 8x8 block
- *
- *
- * Input: Pointers to input source data buffer and destination
- * buffer.
- *
- * Note: none
- *
- * Special Notes: We try to do the truncation right to match the result
- * of the c version.
- *
- ************************************************************************/
-
/* execute stage 1 of forward DCT */
#define Fdct_mmx(ip0,ip1,ip2,ip3,ip4,ip5,ip6,ip7,temp) \
" movq " #ip0 ", %%mm0 \n\t" \
@@ -299,6 +286,9 @@
" movq %%mm2," #op2 " \n\t"
+/* This performs a 2D Forward DCT on an 8x8 block with short
+ coefficients. We try to do the truncation to match the C
+ version. */
static void fdct_short__mmx ( ogg_int16_t *InputData, ogg_int16_t *OutputData)
{
ogg_int64_t __attribute__((aligned(8))) align_tmp[16];
@@ -342,6 +332,7 @@
);
}
+/* install our implementation in the function table */
void dsp_mmx_fdct_init(DspFunctions *funcs)
{
TH_DEBUG("enabling accelerated x86_64 mmx fdct function.\n");
Property changes on: trunk/theora/lib/x86_64/fdct_mmx.c
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: trunk/theora/lib/x86_64/recon_mmx.c
===================================================================
--- trunk/theora/lib/x86_64/recon_mmx.c 2006-05-27 05:18:37 UTC (rev 11440)
+++ trunk/theora/lib/x86_64/recon_mmx.c 2006-05-27 17:09:08 UTC (rev 11441)
@@ -11,7 +11,7 @@
********************************************************************
function:
- last mod: $Id: reconstruct.c,v 1.6 2003/12/03 08:59:41 arc Exp $
+ last mod: $Id$
********************************************************************/
Property changes on: trunk/theora/lib/x86_64/recon_mmx.c
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
More information about the commits
mailing list