mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
39 lines
1.6 KiB
C
39 lines
1.6 KiB
C
|
/********************************************************************
|
||
|
* *
|
||
|
* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
|
||
|
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
|
||
|
* GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
|
||
|
* IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
|
||
|
* *
|
||
|
* THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2007 *
|
||
|
* by the Xiph.Org Foundation http://www.xiph.org/ *
|
||
|
* *
|
||
|
********************************************************************
|
||
|
|
||
|
function:
|
||
|
last mod: $Id: x86state.c 13884 2007-09-22 08:38:10Z giles $
|
||
|
|
||
|
********************************************************************/
|
||
|
|
||
|
#include "x86int.h"
|
||
|
|
||
|
#if defined(USE_ASM)
|
||
|
|
||
|
#include "../../cpu.h"
|
||
|
|
||
|
void oc_state_vtable_init_x86(oc_theora_state *_state){
|
||
|
_state->cpu_flags=oc_cpu_flags_get();
|
||
|
if(_state->cpu_flags&OC_CPU_X86_MMX){
|
||
|
_state->opt_vtable.frag_recon_intra=oc_frag_recon_intra_mmx;
|
||
|
_state->opt_vtable.frag_recon_inter=oc_frag_recon_inter_mmx;
|
||
|
_state->opt_vtable.frag_recon_inter2=oc_frag_recon_inter2_mmx;
|
||
|
_state->opt_vtable.state_frag_copy=oc_state_frag_copy_mmx;
|
||
|
_state->opt_vtable.state_frag_recon=oc_state_frag_recon_mmx;
|
||
|
_state->opt_vtable.state_loop_filter_frag_rows=
|
||
|
oc_state_loop_filter_frag_rows_mmx;
|
||
|
_state->opt_vtable.restore_fpu=oc_restore_fpu_mmx;
|
||
|
}
|
||
|
else oc_state_vtable_init_c(_state);
|
||
|
}
|
||
|
#endif
|