Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
1b9ada6c
Commit
1b9ada6c
authored
3 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
ntdll: Remove math functions from the unixlib interface.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2e4c090c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dlls/ntdll/Makefile.in
+1
-1
1 addition, 1 deletion
dlls/ntdll/Makefile.in
dlls/ntdll/unix/loader.c
+0
-24
0 additions, 24 deletions
dlls/ntdll/unix/loader.c
dlls/ntdll/unixlib.h
+1
-13
1 addition, 13 deletions
dlls/ntdll/unixlib.h
with
2 additions
and
38 deletions
dlls/ntdll/Makefile.in
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
dlls/ntdll/unix/loader.c
+
0
−
24
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
,
...
...
This diff is collapsed.
Click to expand it.
dlls/ntdll/unixlib.h
+
1
−
13
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment