Mercurial > libavcodec.hg
changeset 1965:f74f306c30b5 libavcodec
vis detection patch by (James Morrison <ja2morri at csclub dot uwaterloo dot ca>)
author | michael |
---|---|
date | Sat, 24 Apr 2004 15:16:23 +0000 |
parents | 2b16a3c32318 |
children | e1fc7c598558 |
files | Makefile common.h |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sat Apr 24 11:51:38 2004 +0000 +++ b/Makefile Sat Apr 24 15:16:23 2004 +0000 @@ -161,12 +161,15 @@ OBJS+= sh4/idct_sh4.o sh4/dsputil_sh4.o sh4/dsputil_align.o endif +ifeq ($(TARGET_ARCH_SPARC),yes) +OBJS+=sparc/dsputil_vis.o +sparc/%.o: sparc/%.c + $(CC) -mcpu=ultrasparc -mtune=ultrasparc $(CFLAGS) -c -o $@ $< +endif ifeq ($(TARGET_ARCH_SPARC64),yes) -OBJS+=sparc/dsputil_vis.o CFLAGS+= -mcpu=ultrasparc -mtune=ultrasparc endif - SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S) OBJS := $(OBJS) $(ASM_OBJS) @@ -220,6 +223,7 @@ ppc/*.o ppc/*~ \ ps2/*.o ps2/*~ \ sh4/*.o sh4/*~ \ + sparc/*.o sparc/*~ \ liba52/*.o liba52/*~ \ apiexample $(TESTS) $(MAKE) -C libpostproc clean
--- a/common.h Sat Apr 24 11:51:38 2004 +0000 +++ b/common.h Sat Apr 24 15:16:23 2004 +0000 @@ -372,7 +372,7 @@ uint8_t run; } RL_VLC_ELEM; -#ifdef ARCH_SPARC64 +#ifdef ARCH_SPARC #define UNALIGNED_STORES_ARE_BAD #endif @@ -423,7 +423,7 @@ bit_buf<<=bit_left; bit_buf |= value >> (n - bit_left); #ifdef UNALIGNED_STORES_ARE_BAD - if (3 & (int) s->buf_ptr) { + if (3 & (intptr_t) s->buf_ptr) { s->buf_ptr[0] = bit_buf >> 24; s->buf_ptr[1] = bit_buf >> 16; s->buf_ptr[2] = bit_buf >> 8;