Commit ff4d7edc authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Import pow implementation from musl.

parent 9d2de96d
......@@ -33,5 +33,4 @@ C_SRCS = \
thread.c \
time.c \
undname.c \
unixlib.c \
wcs.c
......@@ -39,7 +39,6 @@ C_SRCS = \
thread.c \
time.c \
undname.c \
unixlib.c \
wcs.c
RC_SRCS = rsrc.rc
......@@ -39,5 +39,4 @@ C_SRCS = \
thread.c \
time.c \
undname.c \
unixlib.c \
wcs.c
......@@ -39,5 +39,4 @@ C_SRCS = \
thread.c \
time.c \
undname.c \
unixlib.c \
wcs.c
......@@ -38,5 +38,4 @@ C_SRCS = \
thread.c \
time.c \
undname.c \
unixlib.c \
wcs.c
......@@ -38,5 +38,4 @@ C_SRCS = \
thread.c \
time.c \
undname.c \
unixlib.c \
wcs.c
......@@ -38,7 +38,6 @@ C_SRCS = \
thread.c \
time.c \
undname.c \
unixlib.c \
wcs.c
RC_SRCS = msvcr80.rc
......@@ -38,7 +38,6 @@ C_SRCS = \
thread.c \
time.c \
undname.c \
unixlib.c \
wcs.c
RC_SRCS = msvcr90.rc
......@@ -43,7 +43,6 @@ C_SRCS = \
thread.c \
time.c \
undname.c \
unixlib.c \
wcs.c
RC_SRCS = \
......
/*
* MSVCRT Unix interface
*
* Copyright 2020 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep unix
#endif
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdarg.h>
#define __USE_ISOC9X 1
#define __USE_ISOC99 1
#include <math.h>
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "winternl.h"
#include "unixlib.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
/*********************************************************************
* pow
*/
static double CDECL unix_pow( double x, double y )
{
return pow( x, y );
}
static const struct unix_funcs funcs =
{
unix_pow,
};
NTSTATUS CDECL __wine_init_unix_lib( HMODULE module, DWORD reason, const void *ptr_in, void *ptr_out )
{
if (reason != DLL_PROCESS_ATTACH) return STATUS_SUCCESS;
TRACE( "\n" );
*(const struct unix_funcs **)ptr_out = &funcs;
return STATUS_SUCCESS;
}
/*
* MSVCRT Unix interface
*
* Copyright 2020 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __UNIXLIB_H
#define __UNIXLIB_H
struct unix_funcs
{
double (CDECL *pow)(double x, double y);
};
#endif /* __UNIXLIB_H */
......@@ -37,5 +37,4 @@ C_SRCS = \
thread.c \
time.c \
undname.c \
unixlib.c \
wcs.c
......@@ -42,7 +42,6 @@ C_SRCS = \
thread.c \
time.c \
undname.c \
unixlib.c \
wcs.c
RC_SRCS = version.rc
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