From 80730c541a014b7543bbfc5bfbc922752e2d5866 Mon Sep 17 00:00:00 2001 From: kobalicekp Date: Sat, 3 May 2014 00:57:16 +0200 Subject: [PATCH] Sanitized source files (spaces / end line marks). --- src/asmjit/base/constpool.cpp | 8 ++++---- src/asmjit/base/constpool.h | 16 ++++++++-------- src/asmjit/x86/x86context.cpp | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/asmjit/base/constpool.cpp b/src/asmjit/base/constpool.cpp index 4a07712..0e900f3 100644 --- a/src/asmjit/base/constpool.cpp +++ b/src/asmjit/base/constpool.cpp @@ -64,7 +64,7 @@ ConstPoolNode* ConstPoolTree::get(const void* data) { size_t dataSize = _dataSize; while (node != sentinel) { - int c = ::memcmp(node->getData(), data, dataSize); + int c = ::memcmp(node->getData(), data, dataSize); if (c == 0) return node; node = node->_link[c < 0]; @@ -118,11 +118,11 @@ void ConstPoolTree::put(ConstPoolNode* newNode) { _root = node; } } - + // ============================================================================ // [asmjit::ConstPool - Construction / Destruction] // ============================================================================ - + ConstPool::ConstPool(Zone* zone) { _zone = zone; @@ -226,7 +226,7 @@ static void ConstPool_addGap(ConstPool* self, size_t offset, size_t length) { gap->_offset = offset; gap->_length = gapLength; - + offset += gapLength; length -= gapLength; } diff --git a/src/asmjit/base/constpool.h b/src/asmjit/base/constpool.h index dc67da0..8ff894e 100644 --- a/src/asmjit/base/constpool.h +++ b/src/asmjit/base/constpool.h @@ -75,12 +75,12 @@ struct ConstPoolTree { // -------------------------------------------------------------------------- // [Reset] // -------------------------------------------------------------------------- - + ASMJIT_INLINE void reset() { _root = const_cast(&_sentinel); _length = 0; } - + // -------------------------------------------------------------------------- // [Accessors] // -------------------------------------------------------------------------- @@ -92,12 +92,12 @@ struct ConstPoolTree { ASMJIT_INLINE size_t getLength() const { return _length; } - + ASMJIT_INLINE void setDataSize(size_t dataSize) { ASMJIT_ASSERT(isEmpty()); _dataSize = dataSize; } - + // -------------------------------------------------------------------------- // [Ops] // -------------------------------------------------------------------------- @@ -220,9 +220,9 @@ struct ConstPool { // -------------------------------------------------------------------------- // [Reset] // -------------------------------------------------------------------------- - + ASMJIT_API void reset(); - + // -------------------------------------------------------------------------- // [Ops] // -------------------------------------------------------------------------- @@ -266,7 +266,7 @@ struct ConstPool { //! @brief Fill the destination with the constants from the pool. ASMJIT_API void fill(void* dst); - + // -------------------------------------------------------------------------- // [Members] // -------------------------------------------------------------------------- @@ -279,7 +279,7 @@ struct ConstPool { ConstPoolGap* _gaps[kIndexCount]; //! @brief Gaps pool ConstPoolGap* _gapPool; - + //! @brief Size of the pool (in bytes). size_t _size; //! @brief Alignemnt. diff --git a/src/asmjit/x86/x86context.cpp b/src/asmjit/x86/x86context.cpp index 0fcf201..74a0006 100644 --- a/src/asmjit/x86/x86context.cpp +++ b/src/asmjit/x86/x86context.cpp @@ -2213,7 +2213,7 @@ _NextGroup: // Handle the case that a 32-bit operation in 64-bit mode // always zeroes the rest of the destination register and - // the case that move size is actually greater than or + // the case that move size is actually greater than or // equal to the size of the variable. if (movSize >= 4 || movSize >= varSize) combinedFlags = outFlags; @@ -2745,7 +2745,7 @@ _OnTarget: goto _OnVisit; } - // Issue #25: Moved '_OnJumpNext' here since it's important to patch + // Issue #25: Moved '_OnJumpNext' here since it's important to patch // code again if there are more live variables than before. _OnJumpNext: if (bCur->delBits(from->getLiveness(), bLen)) {