VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Boot/Windows/Platform.cpp3
-rw-r--r--src/Boot/Windows/Platform.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/Boot/Windows/Platform.cpp b/src/Boot/Windows/Platform.cpp
index 486f4364..046fa4a4 100644
--- a/src/Boot/Windows/Platform.cpp
+++ b/src/Boot/Windows/Platform.cpp
@@ -136,8 +136,10 @@ bool operator<= (const uint64 &a, const uint64 &b)
{
return a < b || a == b;
}
+#ifdef TC_BOOT_DEBUG_ENABLED
+
bool TestInt64 ()
{
uint64 a, b, c;
a.HighPart = 0x00112233UL;
@@ -160,8 +162,9 @@ bool TestInt64 ()
c = c << 9;
return c.HighPart == 0x22446755UL && c.LowPart == 0x78024600UL;
}
+#endif
void CopyMemory (void *source, uint16 destSegment, uint16 destOffset, uint16 blockSize)
{
__asm
diff --git a/src/Boot/Windows/Platform.h b/src/Boot/Windows/Platform.h
index 41ace2a5..1c41ec03 100644
--- a/src/Boot/Windows/Platform.h
+++ b/src/Boot/Windows/Platform.h
@@ -109,8 +109,10 @@ void CopyMemory (void *source, uint16 destSegment, uint16 destOffset, uint16 blo
void CopyMemory (uint16 sourceSegment, uint16 sourceOffset, void *destination, uint16 blockSize);
extern "C" void EraseMemory (void *memory, int size);
uint32 GetLinearAddress (uint16 segment, uint16 offset);
bool RegionsIntersect (const uint64 &start1, uint32 length1, const uint64 &start2, const uint64 &end2);
+#ifdef TC_BOOT_DEBUG_ENABLED
bool TestInt64 ();
+#endif
extern "C" void ThrowFatalException (int line);
#endif // TC_HEADER_Boot_Platform