title: gamma or log gamma function in C or C
body: <p>I am seeking a C or C++ version of gamma and log gamma functions.</p>
  
  <p>Are there any code pieces or libraries recommended?</p>
  
  <p>If possible, I want to know the principle of the implementations.</p>
  
  <p>Thank you!!!</p>