]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r204974, r205002
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 15 Mar 2010 18:32:57 +0000 (18:32 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 15 Mar 2010 18:32:57 +0000 (18:32 +0000)
commit36cd1fad57628ebace1877494b7c6c48064c3e40
tree7011f241d146d14682e0767376e7d39cf9254b77
parent8577d013b7864c053867d4bf9ac400835983d0e0
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)

git-svn-id: svn://svn.freebsd.org/base/stable/8@205183 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/sparc64/fpu/fpu.c
lib/libc/sparc64/fpu/fpu_emu.h