[FFmpeg-cvslog] r10771 - in trunk/libavcodec/i386: dsputil_mmx_avg.h dsputil_mmx_qns.h dsputil_mmx_rnd.h

diego subversion
Thu Oct 18 00:29:13 CEST 2007


Author: diego
Date: Thu Oct 18 00:29:13 2007
New Revision: 10771

Log:
Explain why there are no multiple inclusion guards in these header files.


Modified:
   trunk/libavcodec/i386/dsputil_mmx_avg.h
   trunk/libavcodec/i386/dsputil_mmx_qns.h
   trunk/libavcodec/i386/dsputil_mmx_rnd.h

Modified: trunk/libavcodec/i386/dsputil_mmx_avg.h
==============================================================================
--- trunk/libavcodec/i386/dsputil_mmx_avg.h	(original)
+++ trunk/libavcodec/i386/dsputil_mmx_avg.h	Thu Oct 18 00:29:13 2007
@@ -24,6 +24,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+/* This header intentionally has no multiple inclusion guards. It is meant to
+ * be included multiple times and generates different code depending on the
+ * value of certain #defines. */
+
 /* XXX: we use explicit registers to avoid a gcc 2.95.2 register asm
    clobber bug - now it will work with 2.95.2 and also with -fPIC
  */

Modified: trunk/libavcodec/i386/dsputil_mmx_qns.h
==============================================================================
--- trunk/libavcodec/i386/dsputil_mmx_qns.h	(original)
+++ trunk/libavcodec/i386/dsputil_mmx_qns.h	Thu Oct 18 00:29:13 2007
@@ -22,6 +22,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+/* This header intentionally has no multiple inclusion guards. It is meant to
+ * be included multiple times and generates different code depending on the
+ * value of certain #defines. */
+
 #define MAX_ABS (512 >> (SCALE_OFFSET>0 ? SCALE_OFFSET : 0))
 
 static int DEF(try_8x8basis)(int16_t rem[64], int16_t weight[64], int16_t basis[64], int scale)

Modified: trunk/libavcodec/i386/dsputil_mmx_rnd.h
==============================================================================
--- trunk/libavcodec/i386/dsputil_mmx_rnd.h	(original)
+++ trunk/libavcodec/i386/dsputil_mmx_rnd.h	Thu Oct 18 00:29:13 2007
@@ -24,6 +24,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+/* This header intentionally has no multiple inclusion guards. It is meant to
+ * be included multiple times and generates different code depending on the
+ * value of certain #defines. */
+
 // put_pixels
 static void DEF(put, pixels8_x2)(uint8_t *block, const uint8_t *pixels, int line_size, int h)
 {




More information about the ffmpeg-cvslog mailing list