From 12f4ff6cbb524d97980100cb09c0c4e0e6ab5667 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 20 Jan 2014 15:40:44 -0800 Subject: [PATCH] Fix ARM_ROR --- src/arm/isa-inlines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arm/isa-inlines.h b/src/arm/isa-inlines.h index 0c576241e..8c25638f5 100644 --- a/src/arm/isa-inlines.h +++ b/src/arm/isa-inlines.h @@ -45,7 +45,7 @@ #define ARM_COND_AL 1 #define ARM_SIGN(I) ((I) >> 31) -#define ARM_ROR(I, ROTATE) ((((uint32_t) (I)) >> ROTATE) | (I << (32 - ROTATE))) +#define ARM_ROR(I, ROTATE) ((((uint32_t) (I)) >> ROTATE) | ((I) << (32 - ROTATE))) #define ARM_CARRY_FROM(M, N, D) (((uint32_t) (M) >> 31) + ((uint32_t) (N) >> 31) > ((uint32_t) (D) >> 31)) #define ARM_BORROW_FROM(M, N, D) (((uint32_t) (M)) >= ((uint32_t) (N)))