diff options
author | Björn Gustavsson <[email protected]> | 2013-02-04 13:53:40 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-02-04 13:53:40 +0100 |
commit | 9b5dc27be0baab15d1bc8b583305205559d97668 (patch) | |
tree | e48e22712662ec4b1ef16cc6025bb7eecba089d2 /lib/compiler/src/beam_asm.erl | |
parent | f84427d53db9843227adda945fb10ed19fc762b8 (diff) | |
parent | 819894b14db18c98ea0460cbbb28f3ad2a1d1b1b (diff) | |
download | otp-9b5dc27be0baab15d1bc8b583305205559d97668.tar.gz otp-9b5dc27be0baab15d1bc8b583305205559d97668.tar.bz2 otp-9b5dc27be0baab15d1bc8b583305205559d97668.zip |
Merge branch 'bjorn/compiler/float/OTP-10788'
* bjorn/compiler/float/OTP-10788:
beam_type: Convert integer to float at compile time
compiler: Use the literal pool for floating point constants
Diffstat (limited to 'lib/compiler/src/beam_asm.erl')
-rw-r--r-- | lib/compiler/src/beam_asm.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_asm.erl b/lib/compiler/src/beam_asm.erl index a7c8508321..98967e651f 100644 --- a/lib/compiler/src/beam_asm.erl +++ b/lib/compiler/src/beam_asm.erl @@ -387,7 +387,7 @@ encode_arg({list, List}, Dict0) -> {L, Dict} = encode_list(List, Dict0, []), {[encode(?tag_z, 1), encode(?tag_u, length(List))|L], Dict}; encode_arg({float, Float}, Dict) when is_float(Float) -> - {[encode(?tag_z, 0),<<Float:64/float>>], Dict}; + encode_arg({literal,Float}, Dict); encode_arg({fr,Fr}, Dict) -> {[encode(?tag_z, 2),encode(?tag_u, Fr)], Dict}; encode_arg({field_flags,Flags0}, Dict) -> |