X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fisaac%2Fisaac64.c;h=3a392fc9b4b91d6e8121644042661f32a08d4082;hb=4a850584f588b35635b2625a15749b7c8f1a0445;hp=0eb47ff9de8a42767351cb04c3c3f87edc881900;hpb=556b131c38e62d09313c89b0fb70fad3386cdb90;p=ccan diff --git a/ccan/isaac/isaac64.c b/ccan/isaac/isaac64.c index 0eb47ff9..3a392fc9 100644 --- a/ccan/isaac/isaac64.c +++ b/ccan/isaac/isaac64.c @@ -1,4 +1,5 @@ -/*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 #include @@ -166,7 +167,7 @@ static float isaac64_float_bits(isaac64_ctx *_ctx,uint64_t _bits,int _base){ _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 @@ -217,7 +218,7 @@ static double isaac64_double_bits(isaac64_ctx *_ctx,uint64_t _bits,int _base){ _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