Re: How to bypass assembler

suxen_drol <[email protected]> Thu, 10 Jun 2004 18:04:13 +1000
Newsgroups gmane.comp.video.xvid.user
Message-ID <[email protected]>
On Thu, 10 Jun 2004 10:52:48 +0530 "Mangesh" <[email protected]> wrote:
> i have removed all .asm files and modified xvid.c and placed #undef ARCH_IS_IA32
> but im getting linking errors like this
> qpel.obj : error LNK2001: unresolved external symbol _xvid_V_Pass_Avrg_Add_16_mmx

 in some rare cases, we call the assembly from c functions, or refer to
assembly functions within structures. you also need to remove these from
the code. 

 the above linking errors are caused by src/image/qpel.c :

XVID_QP_FUNCS xvid_QP_Add_Funcs_mmx = {
	xvid_H_Pass_Add_16_mmx, xvid_H_Pass_Avrg_Add_16_mmx, xvid_H_Pass_Avrg_Up_Add_16_mmx,
	xvid_V_Pass_Add_16_mmx, xvid_V_Pass_Avrg_Add_16_mmx, xvid_V_Pass_Avrg_Up_Add_16_mmx,
	xvid_H_Pass_8_Add_mmx, xvid_H_Pass_Avrg_8_Add_mmx, xvid_H_Pass_Avrg_Up_8_Add_mmx,
	xvid_V_Pass_8_Add_mmx, xvid_V_Pass_Avrg_8_Add_mmx, xvid_V_Pass_Avrg_Up_8_Add_mmx,
};

cheers,
-- pete