remove non-gpl components
[goodguy/history.git] / cinelerra-5.1 / mpeg2enc / transfrm.c
index ac4127ee53f4704eccc0a4d64b1054741af255b6..fc4141b31dfdb1cfb1ccd988c11dc9ef5efa6ce3 100644 (file)
@@ -30,6 +30,7 @@
 #include "config.h"
 #include "global.h"
 #include <stdio.h>
+#include <stdlib.h>
 #include <math.h>
 #include "cpu_accel.h"
 
@@ -74,10 +75,10 @@ static void (*psub_pred) (uint8_t *pred, uint8_t *cur,
 
 void init_transform_hv()
 {
+#ifdef X86_CPU
        int flags;
        flags = cpu_accel();
 
-#ifdef X86_CPU
        if( (flags & ACCEL_X86_MMX) ) /* MMX CPU */
        {
                if(verbose) fprintf( stderr, "SETTING MMX for TRANSFORM!\n");
@@ -103,7 +104,7 @@ static void add_pred(unsigned char *pred,
        int lx,
        short *blk)
 {
-       register int j;
+       int j;
 
        for (j=0; j<8; j++)
        {
@@ -132,7 +133,7 @@ static void sub_pred(unsigned char *pred,
        int lx,
        short *blk)
 {
-       register int j;
+       int j;
 
        for (j=0; j<8; j++)
        {