diff options
author | Björn Gustavsson <bjorn@erlang.org> | 2016-11-03 09:58:32 +0100 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2016-11-03 09:58:32 +0100 |
commit | 214aba4561eb09020379cb4d7da7e6fffe2873ab (patch) | |
tree | b02f066ce3ebb5e055c3bc60454b51291f25f08a /lib/compiler/src/beam_validator.erl | |
parent | 38e1f98a0a4729357c3669a5c5e2f93ad5ab1d90 (diff) | |
parent | 39d08368a04aa0459390ac070f3570e10cffe219 (diff) | |
download | otp-214aba4561eb09020379cb4d7da7e6fffe2873ab.tar.gz otp-214aba4561eb09020379cb4d7da7e6fffe2873ab.tar.bz2 otp-214aba4561eb09020379cb4d7da7e6fffe2873ab.zip |
Merge branch 'gandrade/fmod/PR-1216/OTP-14000'
* gandrade/fmod/PR-1216/OTP-14000:
Add test cases for math:fmod/2 BIF
Support math:fmod/2 BIF on compiler
Add math:fmod/2 BIF
Diffstat (limited to 'lib/compiler/src/beam_validator.erl')
-rw-r--r-- | lib/compiler/src/beam_validator.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compiler/src/beam_validator.erl b/lib/compiler/src/beam_validator.erl index 6e53f53a20..5659077c5d 100644 --- a/lib/compiler/src/beam_validator.erl +++ b/lib/compiler/src/beam_validator.erl @@ -1646,6 +1646,7 @@ return_type_math(atan2, 2) -> {float,[]}; return_type_math(pow, 2) -> {float,[]}; return_type_math(ceil, 1) -> {float,[]}; return_type_math(floor, 1) -> {float,[]}; +return_type_math(fmod, 2) -> {float,[]}; return_type_math(pi, 0) -> {float,[]}; return_type_math(F, A) when is_atom(F), is_integer(A), A >= 0 -> term. |