This file probably got corrupted by a pretty printer at some point... SDL-ryan-multiple-audio-device
authorRyan C. Gordon <icculus@icculus.org>
Sun, 08 Oct 2006 08:55:14 +0000
branchSDL-ryan-multiple-audio-device
changeset 383845e566003276
parent 3837 7c9663fb0860
child 3839 506fc6ca82cb
This file probably got corrupted by a pretty printer at some point...
src/timer/os2/SDL_systimer.c
     1.1 --- a/src/timer/os2/SDL_systimer.c	Sun Oct 08 01:39:01 2006 +0000
     1.2 +++ b/src/timer/os2/SDL_systimer.c	Sun Oct 08 08:55:14 2006 +0000
     1.3 @@ -65,24 +65,28 @@
     1.4  */
     1.5      /* inline asm to avoid runtime inclusion */
     1.6      _asm {
     1.7 -    push edx
     1.8 -            push eax
     1.9 -            mov eax, dword ptr hires_now
    1.10 -            mov edx, dword ptr hires_now + 4
    1.11 -            sub eax, dword ptr hires_start_ticks
    1.12 -            sbb edx, dword ptr hires_start_ticks + 4
    1.13 -            mov ebx, 1000
    1.14 -            mov ecx, edx
    1.15 -            mul ebx
    1.16 -            push eax
    1.17 -            push edx
    1.18 -            mov eax, ecx
    1.19 -            mul ebx
    1.20 -            pop eax
    1.21 -            add edx, eax
    1.22 -            pop eax
    1.23 -            mov ebx, dword ptr hires_ticks_per_second
    1.24 -            div ebx mov dword ptr ticks, eax pop edx pop eax}
    1.25 +        push edx
    1.26 +        push eax
    1.27 +        mov eax, dword ptr hires_now
    1.28 +        mov edx, dword ptr hires_now + 4
    1.29 +        sub eax, dword ptr hires_start_ticks
    1.30 +        sbb edx, dword ptr hires_start_ticks + 4
    1.31 +        mov ebx, 1000
    1.32 +        mov ecx, edx
    1.33 +        mul ebx
    1.34 +        push eax
    1.35 +        push edx
    1.36 +        mov eax, ecx
    1.37 +        mul ebx
    1.38 +        pop eax
    1.39 +        add edx, eax
    1.40 +        pop eax
    1.41 +        mov ebx, dword ptr hires_ticks_per_second
    1.42 +        div ebx
    1.43 +        mov dword ptr ticks, eax
    1.44 +        pop edx
    1.45 +        pop eax
    1.46 +    }
    1.47  
    1.48      return ticks;
    1.49  
    1.50 @@ -178,7 +182,7 @@
    1.51  static int timer_alive = 0;
    1.52  static SDL_Thread *timer = NULL;
    1.53  
    1.54 -static int
    1.55 +static int SDLCALL
    1.56  RunTimer(void *unused)
    1.57  {
    1.58      DosSetPriority(PRTYS_THREAD, PRTYC_TIMECRITICAL, 0, 0);