remove magic numbers from floatscan
This commit is contained in:
parent
fe514951af
commit
3ddeedd8f7
1 changed files with 5 additions and 5 deletions
|
|
@ -403,16 +403,16 @@ long double __floatscan(FILE *f, int c, int prec, int pok)
|
||||||
|
|
||||||
switch (prec) {
|
switch (prec) {
|
||||||
case 0:
|
case 0:
|
||||||
bits = 24;
|
bits = FLT_MANT_DIG;
|
||||||
emin = -149;
|
emin = FLT_MIN_EXP-bits;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
bits = 53;
|
bits = DBL_MANT_DIG;
|
||||||
emin = -1074;
|
emin = DBL_MIN_EXP-bits;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
bits = LDBL_MANT_DIG;
|
bits = LDBL_MANT_DIG;
|
||||||
emin = -16445;
|
emin = LDBL_MIN_EXP-bits;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue