commit | 7c677acdc74cedd153e6cfcf13d9fab177d7fe3f | [log] [tgz] |
---|---|---|
author | Johnny Chen <johnny.chen@apple.com> | Thu Feb 17 17:31:08 2011 +0000 |
committer | Johnny Chen <johnny.chen@apple.com> | Thu Feb 17 17:31:08 2011 +0000 |
tree | 6b77bcd41aa542afb021a97d4f4456199f16e07a | |
parent | 4fefe326fba2e20d2cd81597334064918cbb4a90 [diff] [blame] |
Move Align(val, alignment) utility function to ARMUtils.h. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@125753 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/Utility/ARMUtils.h b/source/Plugins/Process/Utility/ARMUtils.h index b7e47b9..d1109eb 100644 --- a/source/Plugins/Process/Utility/ARMUtils.h +++ b/source/Plugins/Process/Utility/ARMUtils.h
@@ -18,6 +18,11 @@ namespace lldb_private { +static inline uint32_t Align(uint32_t val, uint32_t alignment) +{ + return alignment * (val / alignment); +} + static inline uint32_t DecodeImmShift(const uint32_t type, const uint32_t imm5, ARM_ShifterType &shift_t) { switch (type) {