retitle 327351 libc rounding is broken on HPPA reassign 327351 libc6 tags 327351 +patch thanks On Sep 9, 2005, at 3:25 PM, Wesley W. Terpstra wrote:
I tried using __asm__ ("fstd %%fr0,0(%1)" : "=m" (*sw) : "r" (sw)); sw[BYTE] &= ~FE_DOWNWARD; sw[BYTE] |= round; __asm__ ("fldd 0(%0), %%fr0" : : "r" (sw), "r" (*sw)); ... and it worked. I don't understand why the *sw needs to be referenced, but you're right that this fixes the problem. I've attached a patch to fix this in libc. |
Attachment:
hppa-rounding.patch
Description: Binary data