Broken asm/div64.h macro

Troy Benjegerdes hozer at
Mon Jan 28 04:49:10 EST 2002

On Sun, Jan 27, 2002 at 12:51:42AM +0200, Momchil Velikov wrote:
> >>>>> "Troy" == Troy Benjegerdes <hozer at> writes:
> Troy> Our div64.h macro is quite broken, and causes printk to not be able to do
> Troy> a long long format.
> Troy> Is there a 'fast' generic C algorithm we can replace it with, instead of
> Troy> mucking with ASM?
> Hmm, I sent a patchlet to lkml with Subject: [PATCH] 64-bit divide tweaks.
> Doesn't it work for you ?

Didn't seee it..

Did you actually try compiling PPC this way??

vsprintf.o(.text+0x494): undefined reference to `__umoddi3'
vsprintf.o(.text+0x494): relocation truncated to fit: R_PPC_REL24
vsprintf.o(.text+0x4ac): undefined reference to `__udivdi3'
vsprintf.o(.text+0x4ac): relocation truncated to fit: R_PPC_REL24

Troy Benjegerdes | master of mispeeling | 'da hozer' |  hozer at
-----"If this message isn't misspelled, I didn't write it" -- Me -----
"Why do musicians compose symphonies and poets write poems? They do it
because life wouldn't have any meaning for them if they didn't. That's
why I draw cartoons. It's my life." -- Charles Schulz

** Sent via the linuxppc-dev mail list. See

More information about the Linuxppc-dev mailing list