mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 20:52:38 +01:00
Merge pull request #19 from splhack/fix-aarch64-build
Fix aarch64 build
This commit is contained in:
2
3rdparty/nvtt/nvcore/debug.h
vendored
2
3rdparty/nvtt/nvcore/debug.h
vendored
@@ -165,7 +165,7 @@ NVCORE_API void NV_CDECL nvDebugPrint( const char *msg, ... ) __attribute__((for
|
|||||||
namespace nv
|
namespace nv
|
||||||
{
|
{
|
||||||
inline bool isValidPtr(const void * ptr) {
|
inline bool isValidPtr(const void * ptr) {
|
||||||
#if NV_CPU_X86_64
|
#if NV_CPU_X86_64 || NV_CPU_AARCH64
|
||||||
if (ptr == NULL) return true;
|
if (ptr == NULL) return true;
|
||||||
if (reinterpret_cast<uint64>(ptr) < 0x10000ULL) return false;
|
if (reinterpret_cast<uint64>(ptr) < 0x10000ULL) return false;
|
||||||
if (reinterpret_cast<uint64>(ptr) >= 0x000007FFFFFEFFFFULL) return false;
|
if (reinterpret_cast<uint64>(ptr) >= 0x000007FFFFFEFFFFULL) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user