The starting point for my actual code is the John D. Cook code here:

http://www.johndcook.com/Gamma.cpp

The actual series appears to go way back, e.g. http://www.netlib.org/toms/404, which in turn refers to volume 14 of Communications of the ACM -- from 1971!