Fix build.
There were a couple more asm lines to turn into __asm__ when the patches got reordered slightly. Change-Id: I44be5caee6d09bb3db5dea4791592b12d175822c Reviewed-on: https://boringssl-review.googlesource.com/6741 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
e3203923b5
commit
23a681b9f9
@ -149,14 +149,14 @@ extern "C" {
|
||||
#define HOST_c2l(c, l) \
|
||||
(void)({ \
|
||||
uint32_t r = *((const uint32_t *)(c)); \
|
||||
asm("bswapl %0" : "=r"(r) : "0"(r)); \
|
||||
__asm__("bswapl %0" : "=r"(r) : "0"(r)); \
|
||||
(c) += 4; \
|
||||
(l) = r; \
|
||||
})
|
||||
#define HOST_l2c(l, c) \
|
||||
(void)({ \
|
||||
uint32_t r = (l); \
|
||||
asm("bswapl %0" : "=r"(r) : "0"(r)); \
|
||||
__asm__("bswapl %0" : "=r"(r) : "0"(r)); \
|
||||
*((uint32_t *)(c)) = r; \
|
||||
(c) += 4; \
|
||||
r; \
|
||||
@ -167,14 +167,14 @@ extern "C" {
|
||||
#define HOST_c2l(c, l) \
|
||||
(void)({ \
|
||||
uint32_t r; \
|
||||
asm("rev %w0, %w1" : "=r"(r) : "r"(*((const uint32_t *)(c)))); \
|
||||
__asm__("rev %w0, %w1" : "=r"(r) : "r"(*((const uint32_t *)(c)))); \
|
||||
(c) += 4; \
|
||||
(l) = r; \
|
||||
})
|
||||
#define HOST_l2c(l, c) \
|
||||
(void)({ \
|
||||
uint32_t r; \
|
||||
asm("rev %w0, %w1" : "=r"(r) : "r"((uint32_t)(l))); \
|
||||
__asm__("rev %w0, %w1" : "=r"(r) : "r"((uint32_t)(l))); \
|
||||
*((uint32_t *)(c)) = r; \
|
||||
(c) += 4; \
|
||||
r; \
|
||||
|
Loading…
Reference in New Issue
Block a user