diff options
Diffstat (limited to 'servers/audio/reverb_sw.cpp')
| -rw-r--r-- | servers/audio/reverb_sw.cpp | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/servers/audio/reverb_sw.cpp b/servers/audio/reverb_sw.cpp index 13742d5db5..63bf1a7eaa 100644 --- a/servers/audio/reverb_sw.cpp +++ b/servers/audio/reverb_sw.cpp @@ -5,8 +5,8 @@ /* GODOT ENGINE */ /* https://godotengine.org */ /*************************************************************************/ -/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */ -/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */ +/* Copyright (c) 2007-2019 Juan Linietsky, Ariel Manzur. */ +/* Copyright (c) 2014-2019 Godot Engine contributors (cf. AUTHORS.md) */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ @@ -29,33 +29,18 @@ /*************************************************************************/ #include "reverb_sw.h" -#include "core/print_string.h" -#include "stdlib.h" -#define SETMIN(x, y) (x) = MIN((x), (y)) -#define rangeloop(c, min, max) \ - for ((c) = (min); (c) < (max); (c)++) -#define ABSDIFF(x, y) \ - (((x) < (y)) ? ((y) - (x)) : ((x) - (y))) +#include "core/print_string.h" -#ifdef bleh_MSC_VER +#include <stdlib.h> -#if _MSC_VER >= 1400 -_FORCE_INLINE_ int32_tMULSHIFT_S32( - int32_t Factor1, - int32_t Factor2, - uint8_t Bits) { +#define SETMIN(x, y) (x) = MIN((x), (y)) - return __ll_rshift( - __emul(Factor1, Factor2), - Bits); -} -#endif +#define rangeloop(c, min, max) \ + for ((c) = (min); (c) < (max); (c)++) -#else #define MULSHIFT_S32(Factor1, Factor2, Bits) \ ((int)(((int64_t)(Factor1) * (Factor2)) >> (Bits))) -#endif struct ReverbParamsSW { unsigned int BufferSize; // Required buffer size |