Fix build on PPC64LE

Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
This commit is contained in:
Timothy Pearson
2016-06-26 20:09:39 -05:00
parent 47b06d3255
commit 203eda1d47
9 changed files with 37 additions and 10 deletions

View File

@ -166,7 +166,7 @@ NVCORE_API void NV_CDECL nvDebugPrint( const char *msg, ... ) __attribute__((for
namespace nv
{
inline bool isValidPtr(const void * ptr) {
#if NV_CPU_X86_64
#if NV_CPU_X86_64 || POSH_CPU_PPC64
if (ptr == NULL) return true;
if (reinterpret_cast<uint64>(ptr) < 0x10000ULL) return false;
if (reinterpret_cast<uint64>(ptr) >= 0x000007FFFFFEFFFFULL) return false;