diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-02-28 18:52:00 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-05-15 11:46:50 +0000 |
commit | 925b18d0cbb444d5a05fbc5689463f2b0ec11927 (patch) | |
tree | 774cb69b395cc3d8c597d64a9ec3536bd9bbbca9 /src/qml/jsruntime/qv4mathobject_p.h | |
parent | f8a415e3eb0b5cc175417ce4782b071c154846e0 (diff) |
v4: add the remaining Math.log functions
We only had natural log, now we have base 2 and base 10 and log1p.
Change-Id: I26e3a50a27821671cf2fb4ed3905a357c23bbecc
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4mathobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4mathobject_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4mathobject_p.h b/src/qml/jsruntime/qv4mathobject_p.h index 0bf5da9404..6d3f9025cf 100644 --- a/src/qml/jsruntime/qv4mathobject_p.h +++ b/src/qml/jsruntime/qv4mathobject_p.h @@ -79,6 +79,9 @@ struct MathObject: Object static ReturnedValue method_exp(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); static ReturnedValue method_floor(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); static ReturnedValue method_log(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); + static ReturnedValue method_log10(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); + static ReturnedValue method_log1p(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); + static ReturnedValue method_log2(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); static ReturnedValue method_max(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); static ReturnedValue method_min(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); static ReturnedValue method_pow(const FunctionObject *, const Value *thisObject, const Value *argv, int argc); |