rename parameter as in prototype
This commit is contained in:
parent
034cd1f444
commit
e9b85f9372
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(__STDC_IEC_559__) || defined(__GCC_IEC_559)
|
#if defined(__STDC_IEC_559__) || defined(__GCC_IEC_559)
|
||||||
int mp_set_double(mp_int *a, double d)
|
int mp_set_double(mp_int *a, double b)
|
||||||
{
|
{
|
||||||
uint64_t frac;
|
uint64_t frac;
|
||||||
int exp, res;
|
int exp, res;
|
||||||
@ -22,7 +22,7 @@ int mp_set_double(mp_int *a, double d)
|
|||||||
double dbl;
|
double dbl;
|
||||||
uint64_t bits;
|
uint64_t bits;
|
||||||
} cast;
|
} cast;
|
||||||
cast.dbl = d;
|
cast.dbl = b;
|
||||||
|
|
||||||
exp = (int)(cast.bits >> 52) & 0x7FF;
|
exp = (int)(cast.bits >> 52) & 0x7FF;
|
||||||
frac = (cast.bits & ((1ULL << 52) - 1)) | (1ULL << 52);
|
frac = (cast.bits & ((1ULL << 52) - 1)) | (1ULL << 52);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user