diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-02-25 23:14:22 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-02-25 23:14:22 +0000 |
commit | 97d1d009e21f1a8ed33f767c31f02ee7d7524e9c (patch) | |
tree | d70ed53a77ac7c02dd888f32d0319a1cd7e483f7 /libavcodec/i386/dsputil_mmx.h | |
parent | 4847a997aa5843fa629f6db6df01bf319110a396 (diff) | |
download | ffmpeg-97d1d009e21f1a8ed33f767c31f02ee7d7524e9c.tar.gz |
split encoding part of dsputil_mmx into its own file
Originally committed as revision 12223 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/dsputil_mmx.h')
-rw-r--r-- | libavcodec/i386/dsputil_mmx.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/i386/dsputil_mmx.h b/libavcodec/i386/dsputil_mmx.h index 7747487b3b..6f0d5ef19a 100644 --- a/libavcodec/i386/dsputil_mmx.h +++ b/libavcodec/i386/dsputil_mmx.h @@ -23,6 +23,7 @@ #define FFMPEG_DSPUTIL_MMX_H #include <stdint.h> +#include "dsputil.h" typedef struct { uint64_t a, b; } xmm_t; @@ -43,6 +44,7 @@ extern const uint64_t ff_pw_42; extern const uint64_t ff_pw_64; extern const uint64_t ff_pw_96; extern const uint64_t ff_pw_128; +extern const uint64_t ff_pw_255; extern const uint64_t ff_pb_1; extern const uint64_t ff_pb_3; @@ -111,4 +113,11 @@ extern const double ff_pd_2[2]; "movdqa 16"#t", "#g" \n\t" #endif +#define MOVQ_WONE(regd) \ + asm volatile ( \ + "pcmpeqd %%" #regd ", %%" #regd " \n\t" \ + "psrlw $15, %%" #regd ::) + +void dsputilenc_init_mmx(DSPContext* c, AVCodecContext *avctx); + #endif /* FFMPEG_DSPUTIL_MMX_H */ |