Commit Graph

1 Commits

Author SHA1 Message Date
Fergus Henderson
0c07d69c89 Reorganize the code in the compiler to centralize the code which handles
Estimated hours taken:
Branches: main, release

Reorganize the code in the compiler to centralize the code which handles
output of floating point literals.

compiler/c_util.m:
	Add new routines make_float_literal and output_float_literal.
	These output to 17 digits precision.
	Also add some comments.

compiler/mlds_to_c.m:
compiler/llds_out.m:
compiler/mlds_to_java.m:
compiler/ilasm.m:
	Use the new routines.
	Also add some comments.

tests/hard_coded/Mmakefile:
tests/hard_coded/float_consistency.m:
tests/hard_coded/float_consistency.exp:
	A regression test.
2002-11-24 03:57:36 +00:00