Doxygen Source Code Documentation
cpu_state.c File Reference
#include "config.h"#include <stdlib.h>#include <inttypes.h>#include "mpeg2.h"#include "mpeg2_internal.h"#include "attributes.h"Go to the source code of this file.
| Functions | |
| void | mpeg2_cpu_state_init (uint32_t accel) | 
| Variables | |
| void(* | mpeg2_cpu_state_save )(cpu_state_t *state)=NULL | 
| void(* | mpeg2_cpu_state_restore )(cpu_state_t *state)=NULL | 
Function Documentation
| 
 | 
| 
 Definition at line 106 of file cpu_state.c. References MPEG2_ACCEL_PPC_ALTIVEC, MPEG2_ACCEL_X86_MMX, mpeg2_cpu_state_restore, mpeg2_cpu_state_save, and uint32_t. Referenced by mpeg2_accel(). 
 00107 {
00108 #ifdef ARCH_X86
00109     if (accel & MPEG2_ACCEL_X86_MMX) {
00110         mpeg2_cpu_state_restore = state_restore_mmx;
00111     }
00112 #endif
00113 #ifdef ARCH_PPC
00114     if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
00115         mpeg2_cpu_state_save = state_save_altivec;
00116         mpeg2_cpu_state_restore = state_restore_altivec;
00117     }
00118 #endif
00119 }
 | 
Variable Documentation
| 
 | 
| 
 Definition at line 37 of file cpu_state.c. Referenced by mpeg2_cpu_state_init(), and mpeg2_slice(). | 
| 
 | 
| 
 Definition at line 36 of file cpu_state.c. Referenced by mpeg2_cpu_state_init(), and mpeg2_slice(). | 
 
                             
                             
                             
                             
                             
                             
                             
                             
                             
                             
                             
                             
 
 
 
 
       
	   
	   
	   
	  