Jump to content

Projects/knight/debated trig

From ourproject.org wiki

Debate over these instructions include:

No need for duplication between Radian and degree

Not as efficient as a library

very small benefit relative to cost in transistors.

Category Name Description
5>|Floating point Radian Sine FSIN Floating point Radian sine Round to nearest, ties to even
FSIN.A Floating point Radian sine Round to nearest, ties away from zero
FSIN.Z Floating point Radian sine Round toward 0
FSIN.P Floating point Radian sine Round toward +∞
FSIN.N Floating point Radian sine Round toward -∞
5>|Floating point Radian cosine FCOS Floating point Radian cosine Round to nearest, ties to even
FCOS.A Floating point Radian cosine Round to nearest, ties away from zero
FCOS.Z Floating point Radian cosine Round toward 0
FCOS.P Floating point Radian cosine Round toward +∞
FCOS.N Floating point Radian cosine Round toward -∞
5>|Floating point Radian Tangent FTAN Floating point Radian tangent Round to nearest, ties to even
FTAN.A Floating point Radian tangent Round to nearest, ties away from zero
FTAN.Z Floating point Radian tangent Round toward 0
FTAN.P Floating point Radian tangent Round toward +∞
FTAN.N Floating point Radian tangent Round toward -∞
5>|Floating point Radian Cotangent FCOT Floating point Radian cotangent Round to nearest, ties to even
FCOT.A Floating point Radian cotangent Round to nearest, ties away from zero
FCOT.Z Floating point Radian cotangent Round toward 0
FCOT.P Floating point Radian cotangent Round toward +∞
FCOT.N Floating point Radian cotangent Round toward -∞
5>|Floating point Radian Secant FSEC Floating point Radian secant Round to nearest, ties to even
FSEC.A Floating point Radian secant Round to nearest, ties away from zero
FSEC.Z Floating point Radian secant Round toward 0
FSEC.P Floating point Radian secant Round toward +∞
FSEC.N Floating point Radian secant Round toward -∞
5>|Floating point Radian Cosecant FCSC Floating point Radian cosecant Round to nearest, ties to even
FCSC.A Floating point Radian cosecant Round to nearest, ties away from zero
FCSC.Z Floating point Radian cosecant Round toward 0
FCSC.P Floating point Radian cosecant Round toward +∞
FCSC.N Floating point Radian cosecant Round toward -∞
5>|Floating point degree Sine FSIND Floating point degree sine Round to nearest, ties to even
FSIND.A Floating point degree sine Round to nearest, ties away from zero
FSIND.Z Floating point degree sine Round toward 0
FSIND.P Floating point degree sine Round toward +∞
FSIND.N Floating point degree sine Round toward -∞
5>|Floating point degree cosine FCOSD Floating point degree cosine Round to nearest, ties to even
FCOSD.A Floating point degree cosine Round to nearest, ties away from zero
FCOSD.Z Floating point degree cosine Round toward 0
FCOSD.P Floating point degree cosine Round toward +∞
FCOSD.N Floating point degree cosine Round toward -∞
5>|Floating point degree Tangent FTAND Floating point degree tangent Round to nearest, ties to even
FTAND.A Floating point degree tangent Round to nearest, ties away from zero
FTAND.Z Floating point degree tangent Round toward 0
FTAND.P Floating point degree tangent Round toward +∞
FTAND.N Floating point degree tangent Round toward -∞
5>|Floating point degree Cotangent FCOTD Floating point degree cotangent Round to nearest, ties to even
FCOTD.A Floating point degree cotangent Round to nearest, ties away from zero
FCOTD.Z Floating point degree cotangent Round toward 0
FCOTD.P Floating point degree cotangent Round toward +∞
FCOTD.N Floating point degree cotangent Round toward -∞
5>|Floating point degree Secant FSECD Floating point degree secant Round to nearest, ties to even
FSECD.A Floating point degree secant Round to nearest, ties away from zero
FSECD.Z Floating point degree secant Round toward 0
FSECD.P Floating point degree secant Round toward +∞
FSECD.N Floating point degree secant Round toward -∞
5>|Floating point degree Cosecant FCSCD Floating point degree cosecant Round to nearest, ties to even
FCSCD.A Floating point degree cosecant Round to nearest, ties away from zero
FCSCD.Z Floating point degree cosecant Round toward 0
FCSCD.P Floating point degree cosecant Round toward +∞
FCSCD.N Floating point degree cosecant Round toward -∞
5>|Floating point Radian Hyperbolic Sine FSINH Floating point Radian Hyperbolic sine Round to nearest, ties to even
FSINH.A Floating point Radian Hyperbolic sine Round to nearest, ties away from zero
FSINH.Z Floating point Radian Hyperbolic sine Round toward 0
FSINH.P Floating point Radian Hyperbolic sine Round toward +∞
FSINH.N Floating point Radian Hyperbolic sine Round toward -∞
5>|Floating point Radian Hyperbolic cosine FCOSH Floating point Radian Hyperbolic cosine Round to nearest, ties to even
FCOSH.A Floating point Radian Hyperbolic cosine Round to nearest, ties away from zero
FCOSH.Z Floating point Radian Hyperbolic cosine Round toward 0
FCOSH.P Floating point Radian Hyperbolic cosine Round toward +∞
FCOSH.N Floating point Radian Hyperbolic cosine Round toward -∞
5>|Floating point Radian Hyperbolic Tangent FTANH Floating point Radian Hyperbolic tangent Round to nearest, ties to even
FTANH.A Floating point Radian Hyperbolic tangent Round to nearest, ties away from zero
FTANH.Z Floating point Radian Hyperbolic tangent Round toward 0
FTANH.P Floating point Radian Hyperbolic tangent Round toward +∞
FTANH.N Floating point Radian Hyperbolic tangent Round toward -∞
5>|Floating point Radian Hyperbolic Cotangent FCOTH Floating point Radian Hyperbolic cotangent Round to nearest, ties to even
FCOTH.A Floating point Radian Hyperbolic cotangent Round to nearest, ties away from zero
FCOTH.Z Floating point Radian Hyperbolic cotangent Round toward 0
FCOTH.P Floating point Radian Hyperbolic cotangent Round toward +∞
FCOTH.N Floating point Radian Hyperbolic cotangent Round toward -∞
5>|Floating point Radian Hyperbolic Secant FSECH Floating point Radian Hyperbolic secant Round to nearest, ties to even
FSECH.A Floating point Radian Hyperbolic secant Round to nearest, ties away from zero
FSECH.Z Floating point Radian Hyperbolic secant Round toward 0
FSECH.P Floating point Radian Hyperbolic secant Round toward +∞
FSECH.N Floating point Radian Hyperbolic secant Round toward -∞
5>|Floating point Radian Hyperbolic Cosecant FCSCH Floating point Radian Hyperbolic cosecant Round to nearest, ties to even
FCSCH.A Floating point Radian Hyperbolic cosecant Round to nearest, ties away from zero
FCSCH.Z Floating point Radian Hyperbolic cosecant Round toward 0
FCSCH.P Floating point Radian Hyperbolic cosecant Round toward +∞
FCSCH.N Floating point Radian Hyperbolic cosecant Round toward -∞
5>|Floating point degree Hyperbolic Sine FSINHD Floating point degree Hyperbolic sine Round to nearest, ties to even
FSINHD.A Floating point degree Hyperbolic sine Round to nearest, ties away from zero
FSINHD.Z Floating point degree Hyperbolic sine Round toward 0
FSINHD.P Floating point degree Hyperbolic sine Round toward +∞
FSINHD.N Floating point degree Hyperbolic sine Round toward -∞
5>|Floating point degree Hyperbolic cosine FCOSHD Floating point degree Hyperbolic cosine Round to nearest, ties to even
FCOSHD.A Floating point degree Hyperbolic cosine Round to nearest, ties away from zero
FCOSHD.Z Floating point degree Hyperbolic cosine Round toward 0
FCOSHD.P Floating point degree Hyperbolic cosine Round toward +∞
FCOSHD.N Floating point degree Hyperbolic cosine Round toward -∞
5>|Floating point degree Hyperbolic Tangent FTANHD Floating point degree Hyperbolic tangent Round to nearest, ties to even
FTANHD.A Floating point degree Hyperbolic tangent Round to nearest, ties away from zero
FTANHD.Z Floating point degree Hyperbolic tangent Round toward 0
FTANHD.P Floating point degree Hyperbolic tangent Round toward +∞
FTANHD.N Floating point degree Hyperbolic tangent Round toward -∞
5>|Floating point degree Hyperbolic Cotangent FCOTHD Floating point degree Hyperbolic cotangent Round to nearest, ties to even
FCOTHD.A Floating point degree Hyperbolic cotangent Round to nearest, ties away from zero
FCOTHD.Z Floating point degree Hyperbolic cotangent Round toward 0
FCOTHD.P Floating point degree Hyperbolic cotangent Round toward +∞
FCOTHD.N Floating point degree Hyperbolic cotangent Round toward -∞
5>|Floating point degree Hyperbolic Secant FSECHD Floating point degree Hyperbolic secant Round to nearest, ties to even
FSECHD.A Floating point degree Hyperbolic secant Round to nearest, ties away from zero
FSECHD.Z Floating point degree Hyperbolic secant Round toward 0
FSECHD.P Floating point degree Hyperbolic secant Round toward +∞
FSECHD.N Floating point degree Hyperbolic secant Round toward -∞
5>|Floating point degree Hyperbolic Cosecant FCSCHD Floating point degree Hyperbolic cosecant Round to nearest, ties to even
FCSCHD.A Floating point degree Hyperbolic cosecant Round to nearest, ties away from zero
FCSCHD.Z Floating point degree Hyperbolic cosecant Round toward 0
FCSCHD.P Floating point degree Hyperbolic cosecant Round toward +∞
FCSCHD.N Floating point degree Hyperbolic cosecant Round toward -∞