diff options
Diffstat (limited to 'arch/xtensa/include/asm/string.h')
-rw-r--r-- | arch/xtensa/include/asm/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/xtensa/include/asm/string.h b/arch/xtensa/include/asm/string.h index 405a8c49ff2c..8d5d9dfadb09 100644 --- a/arch/xtensa/include/asm/string.h +++ b/arch/xtensa/include/asm/string.h | |||
@@ -74,7 +74,7 @@ static inline int strcmp(const char *__cs, const char *__ct) | |||
74 | "beqz %2, 2f\n\t" | 74 | "beqz %2, 2f\n\t" |
75 | "beq %2, %3, 1b\n" | 75 | "beq %2, %3, 1b\n" |
76 | "2:\n\t" | 76 | "2:\n\t" |
77 | "sub %2, %3, %2" | 77 | "sub %2, %2, %3" |
78 | : "=r" (__cs), "=r" (__ct), "=&r" (__res), "=&r" (__dummy) | 78 | : "=r" (__cs), "=r" (__ct), "=&r" (__res), "=&r" (__dummy) |
79 | : "0" (__cs), "1" (__ct)); | 79 | : "0" (__cs), "1" (__ct)); |
80 | 80 | ||
@@ -99,7 +99,7 @@ static inline int strncmp(const char *__cs, const char *__ct, size_t __n) | |||
99 | "beqz %3, 2f\n\t" | 99 | "beqz %3, 2f\n\t" |
100 | "beq %2, %3, 1b\n" | 100 | "beq %2, %3, 1b\n" |
101 | "2:\n\t" | 101 | "2:\n\t" |
102 | "sub %2, %3, %2" | 102 | "sub %2, %2, %3" |
103 | : "=r" (__cs), "=r" (__ct), "=&r" (__res), "=&r" (__dummy) | 103 | : "=r" (__cs), "=r" (__ct), "=&r" (__res), "=&r" (__dummy) |
104 | : "0" (__cs), "1" (__ct), "r" (__cs+__n)); | 104 | : "0" (__cs), "1" (__ct), "r" (__cs+__n)); |
105 | 105 | ||