comparison src/video/SDL_gamma.c @ 1334:37d43bd654d7

Proper credit to uClibc :)
author Sam Lantinga <slouken@libsdl.org>
date Mon, 06 Feb 2006 17:26:47 +0000
parents 450721ad5436
children 3692456e7b0f
comparison
equal deleted inserted replaced
1333:39b0d60d3f50 1334:37d43bd654d7
24 24
25 #include "SDL_config.h" 25 #include "SDL_config.h"
26 26
27 #ifdef HAVE_MATH_H 27 #ifdef HAVE_MATH_H
28 #include <math.h> /* Used for calculating gamma ramps */ 28 #include <math.h> /* Used for calculating gamma ramps */
29 #endif 29 #else
30 30 /* Math routines from uClibc: http://www.uclibc.org */
31 #include "SDL_error.h"
32 #include "SDL_stdlib.h"
33 #include "SDL_string.h"
34 #include "SDL_sysvideo.h"
35
36 #ifndef HAVE_MATH_H
37 #include "math_private.h" 31 #include "math_private.h"
38 #include "e_sqrt.h" 32 #include "e_sqrt.h"
39 #include "e_pow.h" 33 #include "e_pow.h"
40 #include "e_log.h" 34 #include "e_log.h"
41 #define pow(x, y) __ieee754_pow(x, y) 35 #define pow(x, y) __ieee754_pow(x, y)
42 #define log(x) __ieee754_log(x) 36 #define log(x) __ieee754_log(x)
43 #endif 37 #endif
38
39 #include "SDL_error.h"
40 #include "SDL_stdlib.h"
41 #include "SDL_string.h"
42 #include "SDL_sysvideo.h"
43
44 44
45 static void CalculateGammaRamp(float gamma, Uint16 *ramp) 45 static void CalculateGammaRamp(float gamma, Uint16 *ramp)
46 { 46 {
47 int i; 47 int i;
48 48