Re: lgamma & gamma reentrant

2011-01-05 Thread Lars T. Kyllingstad
On Wed, 05 Jan 2011 11:33:30 -0700, Travis Boucher wrote: > I need some feedback from some of the math nerds on the list. > > The functions gammaf and lgammaf are not reentrant and set a global > 'signgam' to indicate the sign. > > Currently it looks like druntime/phobos2 use these non-reentrant

lgamma & gamma reentrant

2011-01-05 Thread Travis Boucher
I need some feedback from some of the math nerds on the list. The functions gammaf and lgammaf are not reentrant and set a global 'signgam' to indicate the sign. Currently it looks like druntime/phobos2 use these non-reentrant versions, which could cause some issues in a threaded environment.