Commit 1b9ada6c authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Remove math functions from the unixlib interface.

parent 2e4c090c
...@@ -4,7 +4,7 @@ UNIXLIB = ntdll.so ...@@ -4,7 +4,7 @@ UNIXLIB = ntdll.so
IMPORTLIB = ntdll IMPORTLIB = ntdll
IMPORTS = winecrt0 IMPORTS = winecrt0
EXTRAINCL = $(UNWIND_CFLAGS) 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 EXTRADLLFLAGS = -nodefaultlibs -Wl,--image-base,0x7bc00000
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
#include <math.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
...@@ -2137,19 +2136,6 @@ static ULONG_PTR get_image_address(void) ...@@ -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 * unix_funcs
*/ */
...@@ -2174,16 +2160,6 @@ static struct unix_funcs unix_funcs = ...@@ -2174,16 +2160,6 @@ static struct unix_funcs unix_funcs =
fast_RtlReleaseSRWLockShared, fast_RtlReleaseSRWLockShared,
fast_RtlWakeConditionVariable, fast_RtlWakeConditionVariable,
fast_wait_cv, 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, load_so_dll,
init_builtin_dll, init_builtin_dll,
init_unix_lib, init_unix_lib,
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
struct _DISPATCHER_CONTEXT; struct _DISPATCHER_CONTEXT;
/* increment this when you change the function table */ /* increment this when you change the function table */
#define NTDLL_UNIXLIB_VERSION 126 #define NTDLL_UNIXLIB_VERSION 127
struct unix_funcs struct unix_funcs
{ {
...@@ -57,18 +57,6 @@ struct unix_funcs ...@@ -57,18 +57,6 @@ struct unix_funcs
NTSTATUS (CDECL *fast_wait_cv)( RTL_CONDITION_VARIABLE *variable, const void *value, NTSTATUS (CDECL *fast_wait_cv)( RTL_CONDITION_VARIABLE *variable, const void *value,
const LARGE_INTEGER *timeout ); 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 */ /* loader functions */
NTSTATUS (CDECL *load_so_dll)( UNICODE_STRING *nt_name, void **module ); NTSTATUS (CDECL *load_so_dll)( UNICODE_STRING *nt_name, void **module );
void (CDECL *init_builtin_dll)( void *module ); void (CDECL *init_builtin_dll)( void *module );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment