MFC: 1.8: several significant fixes and one optimization by merging better code from sinmh() and tanhf().
MFC: 1.8: several significant fixes and one optimization by merging better
code from sinmh() and tanhf().

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase