Date: Mon, 15 Mar 2010 18:33:32 +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: <201003151833.o2FIXuAn078533@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marius 2010-03-15 18:33:32 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
lib/libc/sparc64/fpu fpu.c fpu_emu.h
Log:
SVN rev 205185 on 2010-03-15 18:33:32Z by marius
MFC: r204974, r205002
- 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)
Revision Changes Path
1.8.8.1 +20 -28 src/lib/libc/sparc64/fpu/fpu.c
1.4.14.1 +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?201003151833.o2FIXuAn078533>
