-/*Written by Timothy B. Terriberry (tterribe@xiph.org) 1999-2009 public domain.
+/*Written by Timothy B. Terriberry (tterribe@xiph.org) 1999-2009
+ CC0 (Public domain) - see LICENSE file for details
Based on the public domain ISAAC implementation by Robert J. Jenkins Jr.*/
#include <float.h>
#include <math.h>
_base-=64;
_bits=isaac64_next_uint64(_ctx);
}
- nbits_needed=FLT_MANT_DIG-ILOGNZ_64(_bits);
+ nbits_needed=FLT_MANT_DIG-ilog64_nz(_bits);
#if FLT_MANT_DIG>64
ret=ldexpf((float)_bits,_base);
# if FLT_MANT_DIG>129
_base-=64;
_bits=isaac64_next_uint64(_ctx);
}
- nbits_needed=DBL_MANT_DIG-ILOGNZ_64(_bits);
+ nbits_needed=DBL_MANT_DIG-ilog64_nz(_bits);
#if DBL_MANT_DIG>64
ret=ldexp((double)_bits,_base);
# if DBL_MANT_DIG>129