I've always used:

tanh(x) ~= x*(27+x*x) / (27+9*x*x)

works well and is pretty CPU cheap