From wikipedia:
The ikfast program can solve for the complete
analytical solutions of most common
robot manipulators and generate C++
code for them. The generated solvers
cover most degenerate cases and can
finish in microseconds on recent
computers.