Date: Wed, 10 Mar 2010 19:55:48 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/sparc64/fpu fpu.c fpu_emu.h Message-ID: <201003101956.o2AJu5ub013767@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marius 2010-03-10 19:55:48 UTC FreeBSD src repository Modified files: lib/libc/sparc64/fpu fpu.c fpu_emu.h Log: SVN rev 204974 on 2010-03-10 19:55:48Z by marius - The OPSZ macro actually only does the right thing for int32 and int64 operands but not for double and extended double ones. Instead of trying to fix the macro just nuke it and unroll the loops in the correct way though as extended double operands turn out to be the only special case. - For FxTO{s,d,q} the source operand is int64 so rs2 has to be re-decoded after setting type accordingly as it's generally decoded using the low 2 bits as the type, which are 0 for these three instructions. - Similarly, in case of F{s,d,q}TOx the target is int64 so rd has to be re-decoded using not only the operand mask appropriate for int64 but also the correct register number encoding. - Use const where appropriate. - Wrap long lines. Submitted by: Peter Jeremy (partly) MFC after: 3 days Revision Changes Path 1.10 +20 -28 src/lib/libc/sparc64/fpu/fpu.c 1.7 +1 -1 src/lib/libc/sparc64/fpu/fpu_emu.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003101956.o2AJu5ub013767>