Mercurial > mplayer.hg
view osdep/timer.h @ 22697:2fe9bd97a7f6
Fix configure -march detection for athlon-xp
The configure script uses SSE support to distinguish between athlon and
athlon-xp, but SSE support was tested _after_ deciding the basic CPU
type. Thus athlon-xp was always misdetected as athlon. Fix this by
moving the CPU extensions check before the CPU type check. Patch from
Andrew Savchenko, bircoph list ru.
author | uau |
---|---|
date | Sun, 18 Mar 2007 13:38:55 +0000 |
parents | f580a7755ac5 |
children | 88bed2131f19 |
line wrap: on
line source
#ifndef __TIMER_H #define __TIMER_H extern const char *timer_name; void InitTimer(void); unsigned int GetTimer(void); unsigned int GetTimerMS(void); //int uGetTimer(); float GetRelativeTime(void); int usec_sleep(int usec_delay); /* timer's callback handling */ typedef void timer_callback( void ); extern unsigned set_timer_callback(unsigned ms,timer_callback func); extern void restore_timer(void); #endif