mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- backend sync with Raze
Nothing really useful here…
This commit is contained in:
parent
45e7badb71
commit
a97a2ec133
3 changed files with 19 additions and 1 deletions
|
@ -44,7 +44,6 @@
|
|||
#include "intrect.h"
|
||||
#include "hw_shadowmap.h"
|
||||
#include "buffers.h"
|
||||
#include "g_levellocals.h"
|
||||
|
||||
|
||||
struct FPortalSceneState;
|
||||
|
|
|
@ -708,6 +708,13 @@ struct AFuncDesc
|
|||
extern FieldDesc const *const VMGlobal_##name##_HookPtr; \
|
||||
MSVC_FSEG FieldDesc const *const VMGlobal_##name##_HookPtr GCC_FSEG = &VMGlobal_##name;
|
||||
|
||||
#define DEFINE_GLOBAL_UNSIZED(name) \
|
||||
static const FieldDesc VMGlobal_##name = { "", #name, (size_t)&name, ~0u, 0 }; \
|
||||
extern FieldDesc const *const VMGlobal_##name##_HookPtr; \
|
||||
MSVC_FSEG FieldDesc const *const VMGlobal_##name##_HookPtr GCC_FSEG = &VMGlobal_##name;
|
||||
|
||||
|
||||
|
||||
|
||||
class AActor;
|
||||
|
||||
|
|
12
src/common/thirdparty/math/cmath.h
vendored
12
src/common/thirdparty/math/cmath.h
vendored
|
@ -54,6 +54,16 @@ extern FFastTrig fasttrig;
|
|||
#define RAD2BAM(f) ((unsigned)xs_CRoundToInt((f) * (0x80000000/3.14159265358979323846)))
|
||||
|
||||
|
||||
inline double fastcosbam(double v)
|
||||
{
|
||||
return fasttrig.cos(v);
|
||||
}
|
||||
|
||||
inline double fastsinbam(double v)
|
||||
{
|
||||
return fasttrig.sin(v);
|
||||
}
|
||||
|
||||
inline double fastcosdeg(double v)
|
||||
{
|
||||
return fasttrig.cos(DEG2BAM(v));
|
||||
|
@ -129,6 +139,8 @@ inline double cosdeg(double v)
|
|||
#else
|
||||
#define g_sindeg fastsindeg
|
||||
#define g_cosdeg fastcosdeg
|
||||
#define g_sinbam fastsinbam
|
||||
#define g_cosbam fastcosbam
|
||||
#define g_sin fastsin
|
||||
#define g_cos fastcos
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue