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
1b9ada6c
Commit
1b9ada6c
authored
Oct 26, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove math functions from the unixlib interface.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2e4c090c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
38 deletions
+2
-38
Makefile.in
dlls/ntdll/Makefile.in
+1
-1
loader.c
dlls/ntdll/unix/loader.c
+0
-24
unixlib.h
dlls/ntdll/unixlib.h
+1
-13
No files found.
dlls/ntdll/Makefile.in
View file @
1b9ada6c
...
...
@@ -4,7 +4,7 @@ UNIXLIB = ntdll.so
IMPORTLIB
=
ntdll
IMPORTS
=
winecrt0
EXTRAINCL
=
$(UNWIND_CFLAGS)
EXTRALIBS
=
$(IOKIT_LIBS)
$(COREFOUNDATION_LIBS)
$(CORESERVICES_LIBS)
$(RT_LIBS)
$(PTHREAD_LIBS)
$(UNWIND_LIBS)
$(I386_LIBS)
$(PROCSTAT_LIBS)
-lm
EXTRALIBS
=
$(IOKIT_LIBS)
$(COREFOUNDATION_LIBS)
$(CORESERVICES_LIBS)
$(RT_LIBS)
$(PTHREAD_LIBS)
$(UNWIND_LIBS)
$(I386_LIBS)
$(PROCSTAT_LIBS)
EXTRADLLFLAGS
=
-nodefaultlibs
-Wl
,--image-base,0x7bc00000
...
...
dlls/ntdll/unix/loader.c
View file @
1b9ada6c
...
...
@@ -30,7 +30,6 @@
#include <stdarg.h>
#include <stdio.h>
#include <signal.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
...
...
@@ -2137,19 +2136,6 @@ static ULONG_PTR get_image_address(void)
}
/* math function wrappers */
static
double
CDECL
ntdll_atan
(
double
d
)
{
return
atan
(
d
);
}
static
double
CDECL
ntdll_ceil
(
double
d
)
{
return
ceil
(
d
);
}
static
double
CDECL
ntdll_cos
(
double
d
)
{
return
cos
(
d
);
}
static
double
CDECL
ntdll_fabs
(
double
d
)
{
return
fabs
(
d
);
}
static
double
CDECL
ntdll_floor
(
double
d
)
{
return
floor
(
d
);
}
static
double
CDECL
ntdll_log
(
double
d
)
{
return
log
(
d
);
}
static
double
CDECL
ntdll_pow
(
double
x
,
double
y
)
{
return
pow
(
x
,
y
);
}
static
double
CDECL
ntdll_sin
(
double
d
)
{
return
sin
(
d
);
}
static
double
CDECL
ntdll_sqrt
(
double
d
)
{
return
sqrt
(
d
);
}
static
double
CDECL
ntdll_tan
(
double
d
)
{
return
tan
(
d
);
}
/***********************************************************************
* unix_funcs
*/
...
...
@@ -2174,16 +2160,6 @@ static struct unix_funcs unix_funcs =
fast_RtlReleaseSRWLockShared
,
fast_RtlWakeConditionVariable
,
fast_wait_cv
,
ntdll_atan
,
ntdll_ceil
,
ntdll_cos
,
ntdll_fabs
,
ntdll_floor
,
ntdll_log
,
ntdll_pow
,
ntdll_sin
,
ntdll_sqrt
,
ntdll_tan
,
load_so_dll
,
init_builtin_dll
,
init_unix_lib
,
...
...
dlls/ntdll/unixlib.h
View file @
1b9ada6c
...
...
@@ -26,7 +26,7 @@
struct
_DISPATCHER_CONTEXT
;
/* increment this when you change the function table */
#define NTDLL_UNIXLIB_VERSION 12
6
#define NTDLL_UNIXLIB_VERSION 12
7
struct
unix_funcs
{
...
...
@@ -57,18 +57,6 @@ struct unix_funcs
NTSTATUS
(
CDECL
*
fast_wait_cv
)(
RTL_CONDITION_VARIABLE
*
variable
,
const
void
*
value
,
const
LARGE_INTEGER
*
timeout
);
/* math functions */
double
(
CDECL
*
atan
)(
double
d
);
double
(
CDECL
*
ceil
)(
double
d
);
double
(
CDECL
*
cos
)(
double
d
);
double
(
CDECL
*
fabs
)(
double
d
);
double
(
CDECL
*
floor
)(
double
d
);
double
(
CDECL
*
log
)(
double
d
);
double
(
CDECL
*
pow
)(
double
x
,
double
y
);
double
(
CDECL
*
sin
)(
double
d
);
double
(
CDECL
*
sqrt
)(
double
d
);
double
(
CDECL
*
tan
)(
double
d
);
/* loader functions */
NTSTATUS
(
CDECL
*
load_so_dll
)(
UNICODE_STRING
*
nt_name
,
void
**
module
);
void
(
CDECL
*
init_builtin_dll
)(
void
*
module
);
...
...
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