Skip to content

Instantly share code, notes, and snippets.

@mnicolella
Created October 4, 2013 00:07
Show Gist options
  • Select an option

  • Save mnicolella/6819047 to your computer and use it in GitHub Desktop.

Select an option

Save mnicolella/6819047 to your computer and use it in GitHub Desktop.
if using Local_Private_Memory, let's not uselessly store the result pointer in a static variable that can get stomped on across threads
return sign ? -dval(&rv) : dval(&rv);
}
#ifndef Local_Private_Memory
#ifndef MULTIPLE_THREADS
static char *dtoa_result;
#endif
#endif
static char *
#ifdef KR_headers
rv_alloc(KRm1 i) KRm2 int i;
-----------------------------------------------------------------------------------------
*r = k;
return
#ifndef Local_Private_Memory
#ifndef MULTIPLE_THREADS
dtoa_result =
#endif
#endif
(char *)(r+1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment