Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/aarch64/include Use %x/%w as appropriate.
details: https://anonhg.NetBSD.org/src/rev/cb9363155f48
branches: trunk
changeset: 331455:cb9363155f48
user: matt <matt%NetBSD.org@localhost>
date: Mon Aug 11 04:03:59 2014 +0000
description:
Use %x/%w as appropriate.
diffstat:
sys/arch/aarch64/include/byte_swap.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 66ee39a874d9 -r cb9363155f48 sys/arch/aarch64/include/byte_swap.h
--- a/sys/arch/aarch64/include/byte_swap.h Mon Aug 11 03:50:29 2014 +0000
+++ b/sys/arch/aarch64/include/byte_swap.h Mon Aug 11 04:03:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: byte_swap.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */
+/* $NetBSD: byte_swap.h,v 1.2 2014/08/11 04:03:59 matt Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
__byte_swap_u64_variable(uint64_t v)
{
if (!__builtin_constant_p(v)) {
- __asm("rev\t%0, %1" : "=r" (v) : "0" (v));
+ __asm("rev\t%x0, %x1" : "=r" (v) : "0" (v));
return v;
}
@@ -71,7 +71,7 @@
__byte_swap_u32_variable(uint32_t v)
{
if (!__builtin_constant_p(v)) {
- __asm("rev\t%0, %1" : "=r" (v) : "0" (v));
+ __asm("rev\t%w0, %w1" : "=r" (v) : "0" (v));
return v;
}
@@ -88,7 +88,7 @@
if (!__builtin_constant_p(v)) {
uint32_t v32 = v;
- __asm("rev16\t%0, %1" : "=r" (v32) : "0" (v32));
+ __asm("rev16\t%w0, %w1" : "=r" (v32) : "0" (v32));
return v32;
}
Home |
Main Index |
Thread Index |
Old Index