ARMEncode.h 797 B

12345678910111213141516171819202122
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. //
  7. // Contains constants and tables used by the encoder.
  8. //
  9. // #include "AssemblyStep.h"
  10. //THUMB2 specific decl
  11. typedef unsigned int ENCODE_32;
  12. //Add more, if required
  13. #define IS_CONST_01FFFFFF(x) (((x) & ~0x01ffffff) == 0)
  14. //Add more, if required
  15. #define IS_CONST_NEG_26(x) (((x) & ~0x01ffffff) == ~0x01ffffff)
  16. //Add more, if required
  17. #define IS_CONST_INT26(x) (IS_CONST_01FFFFFF(x) || IS_CONST_NEG_26(x))