Messages in this thread | | | From | Denys Vlasenko <> | Date | Tue, 27 Mar 2012 17:32:06 +0200 | Subject | Re: [PATCH 0/1] vsprintf: optimize decimal conversion (again) |
| |
On Tue, Mar 27, 2012 at 2:08 PM, roma1390 <roma1390@gmail.com> wrote: > On 2012.03.26 21:47, Denys Vlasenko wrote: >> >> Please find test programs attached. >> >> 32-bit test programs were built using gcc 4.6.2 >> 64-bit test programs were built using gcc 4.2.1 >> Command line: gcc --static [-m32] -O2 -Wall test_{org,new}.c > > Can't compile reference for arm: > $ arm-linux-gnueabi-gcc -O2 -Wall test_org.c -o test_org > test_org.c: In function ‘put_dec’: > test_org.c:101: error: impossible constraint in ‘asm’ > test_org.c:101: error: impossible constraint in ‘asm’ > test_org.c:101: error: impossible constraint in ‘asm’
Problem is that test_header.c contains do_div() macro copied from x86 arch.
Can you replace it with one taken from arm arch? You can find it in arch/arm/include/asm/div64.h, and __asmeq macro can be found in arch/arm/include/asm/system.h.
-- vda
arch/arm/include/asm/div64.h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |