diff options
author | Chris Robinson <[email protected]> | 2013-05-28 22:27:07 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-05-28 22:27:07 -0700 |
commit | e96cc656e9c9176ba60cd191896fd6386a7fd74d (patch) | |
tree | b6deb2a859ca08a519f9ff2c1c3d9022eb698462 /Alc/effects/modulator.c | |
parent | 48aa1e10d64d7c62cab856a0c5d7f9e140efbd6b (diff) |
Use C99's inline instead of __inline
Diffstat (limited to 'Alc/effects/modulator.c')
-rw-r--r-- | Alc/effects/modulator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/effects/modulator.c b/Alc/effects/modulator.c index 930be059..d253614c 100644 --- a/Alc/effects/modulator.c +++ b/Alc/effects/modulator.c @@ -58,17 +58,17 @@ typedef struct ALmodulatorState { #define WAVEFORM_FRACONE (1<<WAVEFORM_FRACBITS) #define WAVEFORM_FRACMASK (WAVEFORM_FRACONE-1) -static __inline ALfloat Sin(ALuint index) +static inline ALfloat Sin(ALuint index) { return sinf(index * (F_PI*2.0f / WAVEFORM_FRACONE) - F_PI)*0.5f + 0.5f; } -static __inline ALfloat Saw(ALuint index) +static inline ALfloat Saw(ALuint index) { return (ALfloat)index / WAVEFORM_FRACONE; } -static __inline ALfloat Square(ALuint index) +static inline ALfloat Square(ALuint index) { return (ALfloat)((index >> (WAVEFORM_FRACBITS - 1)) & 1); } |