Mercurial > sdl-ios-xcode
comparison src/timer/os2/SDL_systimer.c @ 2060:866052b01ee5
indent is evil
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 28 Oct 2006 16:48:03 +0000 |
parents | 5f6550e5184f |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2059:4685ccd33d0e | 2060:866052b01ee5 |
---|---|
62 hires_now -= hires_start_ticks; | 62 hires_now -= hires_start_ticks; |
63 hires_now *= 1000; | 63 hires_now *= 1000; |
64 hires_now /= hires_ticks_per_second; | 64 hires_now /= hires_ticks_per_second; |
65 */ | 65 */ |
66 /* inline asm to avoid runtime inclusion */ | 66 /* inline asm to avoid runtime inclusion */ |
67 /* *INDENT-OFF* */ | |
67 _asm { | 68 _asm { |
68 push edx | 69 push edx |
69 push eax | 70 push eax |
70 mov eax, dword ptr hires_now | 71 mov eax, dword ptr hires_now |
71 mov edx, dword ptr hires_now + 4 | 72 mov edx, dword ptr hires_now + 4 |
85 div ebx | 86 div ebx |
86 mov dword ptr ticks, eax | 87 mov dword ptr ticks, eax |
87 pop edx | 88 pop edx |
88 pop eax | 89 pop eax |
89 } | 90 } |
91 /* *INDENT-ON* */ | |
90 | 92 |
91 return ticks; | 93 return ticks; |
92 | 94 |
93 } | 95 } |
94 | 96 |