Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0c6b427a
Commit
0c6b427a
authored
Dec 11, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Math.LOG2E implementation.
parent
da03e677
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
math.c
dlls/jscript/math.c
+6
-5
api.js
dlls/jscript/tests/api.js
+5
-0
No files found.
dlls/jscript/math.c
View file @
0c6b427a
...
...
@@ -77,11 +77,12 @@ static HRESULT Math_E(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *dp,
return
math_constant
(
M_E
,
flags
,
retv
);
}
/* ECMA-262 3rd Edition 15.8.1.4 */
static
HRESULT
Math_LOG2E
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXM
E
(
"
\n
"
);
return
E_NOTIMPL
;
TRAC
E
(
"
\n
"
);
return
math_constant
(
M_LOG2E
,
flags
,
retv
)
;
}
static
HRESULT
Math_LOG10E
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
...
...
@@ -403,10 +404,10 @@ static HRESULT Math_tan(DispatchEx *dispex, LCID lcid, WORD flags, DISPPARAMS *d
static
const
builtin_prop_t
Math_props
[]
=
{
{
EW
,
Math_E
,
0
},
{
LOG2EW
,
Math_LOG2E
,
0
},
{
LOG10EW
,
Math_LOG10E
,
0
},
{
LN2W
,
Math_LN2
,
0
},
{
LN10W
,
Math_LN10
,
0
},
{
LN2W
,
Math_LN2
,
0
},
{
LOG10EW
,
Math_LOG10E
,
0
},
{
LOG2EW
,
Math_LOG2E
,
0
},
{
PIW
,
Math_PI
,
0
},
{
SQRT1_2W
,
Math_SQRT1_2
,
0
},
{
SQRT2W
,
Math_SQRT2
,
0
},
...
...
dlls/jscript/tests/api.js
View file @
0c6b427a
...
...
@@ -619,4 +619,9 @@ ok(Math.floor(Math.E*100) === 271, "Math.E = " + Math.E);
Math
.
E
=
"test"
;
ok
(
Math
.
floor
(
Math
.
E
*
100
)
===
271
,
"modified Math.E = "
+
Math
.
E
);
ok
(
typeof
(
Math
.
LOG2E
)
===
"number"
,
"typeof(Math.LOG2E) = "
+
typeof
(
Math
.
LOG2E
));
ok
(
Math
.
floor
(
Math
.
LOG2E
*
100
)
===
144
,
"Math.LOG2E = "
+
Math
.
LOG2E
);
Math
.
LOG2E
=
"test"
;
ok
(
Math
.
floor
(
Math
.
LOG2E
*
100
)
===
144
,
"modified Math.LOG2E = "
+
Math
.
LOG2E
);
reportSuccess
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment