bug in asm-ppc/div64.h
Bastien Nocera
hadess at hadess.net
Tue Mar 11 22:05:58 EST 2003
Hello,
While chasing a date bug in smbfs with Urban Widmark, it so happened
that we stumbled across a bug in do_div on PPC 32bit, ie. it doesn't
work.
I attached a test case, provided by Urban. do_div is used in quite a few
places like vsprintf, the matrox fb code, etc.
When running on x86:
now: 1047238073
adjusted: 24edd64059e100
/ 10000000: 3df4e80a
1039460362
Check the run on PPC. It's wrong by quite a scale.
Any ideas on how to solve this properly ?
Cheers
--
/Bastien Nocera
http://www.redhat.com
Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away.
Antoine de Saint-Exupery
--
/Bastien Nocera
http://hadess.net
#2 0x4205a2cc in printf ("Oh my %s\n", preferred_deity) from
/lib/i686/libc.so.6 printf ("Oh my %s\n", preferred_deity);
Segmentation fault
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smbfs-time.c
Type: text/x-c
Size: 519 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20030311/dafee778/attachment.bin>
More information about the Linuxppc-dev
mailing list