mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:57:30 +02:00
Remove obsolete 32-bit optimizations
This commit is contained in:
parent
5f394fb254
commit
3071b410bf
1 changed files with 3 additions and 10 deletions
|
@ -13,18 +13,11 @@
|
||||||
#include "AudioReverb.h"
|
#include "AudioReverb.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
inline static int MULHI(int a, int b) {
|
#define MULHI(a,b) ((int32_t)(__emul(a, b) >> 32))
|
||||||
long long c = __emul(a, b);
|
|
||||||
return ((int*)&c)[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
#define MULHI(a,b) ((int32_t)(((int64_t)(a) * (int64_t)(b)) >> 32))
|
||||||
#define MULHI(a,b) (int)(((long long)(a) * (b)) >> 32)
|
#endif
|
||||||
|
|
||||||
#endif // _MSC_VER
|
|
||||||
|
|
||||||
#ifndef MAX
|
#ifndef MAX
|
||||||
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
|
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
|
||||||
|
|
Loading…
Reference in a new issue