Mercurial > sdl-ios-xcode
comparison src/audio/mint/SDL_mintaudio.c @ 2027:d48ead2d2ba5
Save/restore FPU registers in interrupt
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Sat, 16 Sep 2006 16:59:46 +0000 |
parents | c121d94672cb |
children | adf732f1f016 |
comparison
equal
deleted
inserted
replaced
2026:a5d0758f88d8 | 2027:d48ead2d2ba5 |
---|---|
141 } | 141 } |
142 } | 142 } |
143 | 143 |
144 /* Not in the array, give the latest */ | 144 /* Not in the array, give the latest */ |
145 return MINTAUDIO_freqcount - 1; | 145 return MINTAUDIO_freqcount - 1; |
146 } | |
147 | |
148 /* Check if FPU is present */ | |
149 void SDL_MintAudio_CheckFpu(void) | |
150 { | |
151 unsigned long cookie_fpu; | |
152 | |
153 SDL_MintAudio_hasfpu = 0; | |
154 if (Getcookie(C__FPU, &cookie_fpu) != C_FOUND) { | |
155 return; | |
156 } | |
157 switch ((cookie_fpu>>16)&0xfffe) { | |
158 case 2: | |
159 case 4: | |
160 case 6: | |
161 case 8: | |
162 case 16: | |
163 SDL_MintAudio_hasfpu = 1; | |
164 break; | |
165 } | |
146 } | 166 } |
147 | 167 |
148 /* The thread function, used under MiNT with xbios */ | 168 /* The thread function, used under MiNT with xbios */ |
149 int | 169 int |
150 SDL_MintAudio_Thread(long param) | 170 SDL_MintAudio_Thread(long param) |