diff options
Diffstat (limited to 'arch/x86/include/asm/alternative-asm.h')
-rw-r--r-- | arch/x86/include/asm/alternative-asm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/include/asm/alternative-asm.h b/arch/x86/include/asm/alternative-asm.h index e7636bac7372..6c98821fef5e 100644 --- a/arch/x86/include/asm/alternative-asm.h +++ b/arch/x86/include/asm/alternative-asm.h | |||
@@ -62,8 +62,10 @@ | |||
62 | #define new_len2 145f-144f | 62 | #define new_len2 145f-144f |
63 | 63 | ||
64 | /* | 64 | /* |
65 | * max without conditionals. Idea adapted from: | 65 | * gas compatible max based on the idea from: |
66 | * http://graphics.stanford.edu/~seander/bithacks.html#IntegerMinOrMax | 66 | * http://graphics.stanford.edu/~seander/bithacks.html#IntegerMinOrMax |
67 | * | ||
68 | * The additional "-" is needed because gas uses a "true" value of -1. | ||
67 | */ | 69 | */ |
68 | #define alt_max_short(a, b) ((a) ^ (((a) ^ (b)) & -(-((a) < (b))))) | 70 | #define alt_max_short(a, b) ((a) ^ (((a) ^ (b)) & -(-((a) < (b))))) |
69 | 71 | ||