comparison src/audio/mint/SDL_mintaudio.c @ 2043:adf732f1f016

Formatting update
author Sam Lantinga <slouken@libsdl.org>
date Sun, 24 Sep 2006 15:56:55 +0000
parents d48ead2d2ba5
children 0b24732b1134
comparison
equal deleted inserted replaced
2042:3908e1f808e1 2043:adf732f1f016
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 } 146 }
147 147
148 /* Check if FPU is present */ 148 /* Check if FPU is present */
149 void SDL_MintAudio_CheckFpu(void) 149 void
150 { 150 SDL_MintAudio_CheckFpu(void)
151 unsigned long cookie_fpu; 151 {
152 152 unsigned long cookie_fpu;
153 SDL_MintAudio_hasfpu = 0; 153
154 if (Getcookie(C__FPU, &cookie_fpu) != C_FOUND) { 154 SDL_MintAudio_hasfpu = 0;
155 return; 155 if (Getcookie(C__FPU, &cookie_fpu) != C_FOUND) {
156 } 156 return;
157 switch ((cookie_fpu>>16)&0xfffe) { 157 }
158 case 2: 158 switch ((cookie_fpu >> 16) & 0xfffe) {
159 case 4: 159 case 2:
160 case 6: 160 case 4:
161 case 8: 161 case 6:
162 case 16: 162 case 8:
163 SDL_MintAudio_hasfpu = 1; 163 case 16:
164 break; 164 SDL_MintAudio_hasfpu = 1;
165 } 165 break;
166 }
166 } 167 }
167 168
168 /* The thread function, used under MiNT with xbios */ 169 /* The thread function, used under MiNT with xbios */
169 int 170 int
170 SDL_MintAudio_Thread(long param) 171 SDL_MintAudio_Thread(long param)