Skip to content

Commit

Permalink
Adds the function log10
Browse files Browse the repository at this point in the history
  • Loading branch information
modlfo committed Oct 21, 2019
1 parent eeaf896 commit 6040d92
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/core/env.ml
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ let builtin_table =
; [ "makeArray" ], Scope.Function, Typ.Const.array_make (), false
; [ "abs" ], Scope.Function, Typ.Const.freal_freal (), false
; [ "exp" ], Scope.Function, Typ.Const.freal_freal (), false
; [ "log10" ], Scope.Function, Typ.Const.freal_freal (), false
; [ "sin" ], Scope.Function, Typ.Const.freal_freal (), false
; [ "cos" ], Scope.Function, Typ.Const.freal_freal (), false
; [ "floor" ], Scope.Function, Typ.Const.freal_freal (), false
Expand Down
1 change: 1 addition & 0 deletions src/core/interpreter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ let builtinFunctions (a : Args.args) env =
in
let functions =
[ "abs", Env.Builtin (real_real abs_float)
; "log10", Env.Builtin (real_real log10)
; "exp", Env.Builtin (real_real exp)
; "sin", Env.Builtin (real_real sin)
; "cos", Env.Builtin (real_real cos)
Expand Down
1 change: 1 addition & 0 deletions src/generators/defaultReplacements.ml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ module Default = struct
; ("msu", "float"), "float_msu"
; ("abs", "float"), "fabsf"
; ("exp", "float"), "expf"
; ("log10", "float"), "log10f"
; ("floor", "float"), "floorf"
; ("max", "float"), "fmax"
; ("min", "float"), "fmin"
Expand Down
2 changes: 1 addition & 1 deletion src/version.ml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
let version = "\nv0.4.4\n"
let version = "\nv0.4.5\n"

0 comments on commit 6040d92

Please sign in to comment.