Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
8c8d8e80
Commit
8c8d8e80
authored
Feb 28, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucrtbase: Add ilogb* functions.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a91c1e05
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
57 additions
and
12 deletions
+57
-12
configure
configure
+2
-0
configure.ac
configure.ac
+2
-0
api-ms-win-crt-math-l1-1-0.spec
...pi-ms-win-crt-math-l1-1-0/api-ms-win-crt-math-l1-1-0.spec
+3
-3
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+3
-3
msvcr120_app.spec
dlls/msvcr120_app/msvcr120_app.spec
+3
-3
math.c
dlls/msvcrt/math.c
+31
-0
msvcrt.h
dlls/msvcrt/msvcrt.h
+4
-0
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+3
-3
config.h.in
include/config.h.in
+6
-0
No files found.
configure
View file @
8c8d8e80
...
@@ -18698,6 +18698,8 @@ for ac_func in \
...
@@ -18698,6 +18698,8 @@ for ac_func in \
exp2f
\
exp2f
\
expm1
\
expm1
\
expm1f
\
expm1f
\
ilogb
\
ilogbf
\
j0
\
j0
\
j1
\
j1
\
jn
\
jn
\
...
...
configure.ac
View file @
8c8d8e80
...
@@ -2743,6 +2743,8 @@ AC_CHECK_FUNCS(\
...
@@ -2743,6 +2743,8 @@ AC_CHECK_FUNCS(\
exp2f \
exp2f \
expm1 \
expm1 \
expm1f \
expm1f \
ilogb \
ilogbf \
j0 \
j0 \
j1 \
j1 \
jn \
jn \
...
...
dlls/api-ms-win-crt-math-l1-1-0/api-ms-win-crt-math-l1-1-0.spec
View file @
8c8d8e80
...
@@ -254,9 +254,9 @@
...
@@ -254,9 +254,9 @@
@ cdecl -arch=arm,x86_64,arm64 fmodf(float float) ucrtbase.fmodf
@ cdecl -arch=arm,x86_64,arm64 fmodf(float float) ucrtbase.fmodf
@ cdecl frexp(double ptr) ucrtbase.frexp
@ cdecl frexp(double ptr) ucrtbase.frexp
@ cdecl hypot(double double) ucrtbase.hypot
@ cdecl hypot(double double) ucrtbase.hypot
@
stub
ilogb
@
cdecl ilogb(double) ucrtbase.
ilogb
@
stub
ilogbf
@
cdecl ilogbf(float) ucrtbase.
ilogbf
@
stub
ilogbl
@
cdecl ilogbl(double) ucrtbase.
ilogbl
@ cdecl ldexp(double long) ucrtbase.ldexp
@ cdecl ldexp(double long) ucrtbase.ldexp
@ cdecl lgamma(double) ucrtbase.lgamma
@ cdecl lgamma(double) ucrtbase.lgamma
@ cdecl lgammaf(float) ucrtbase.lgammaf
@ cdecl lgammaf(float) ucrtbase.lgammaf
...
...
dlls/msvcr120/msvcr120.spec
View file @
8c8d8e80
...
@@ -2207,9 +2207,9 @@
...
@@ -2207,9 +2207,9 @@
@ cdecl gets_s(ptr long) MSVCRT_gets_s
@ cdecl gets_s(ptr long) MSVCRT_gets_s
@ cdecl getwc(ptr) MSVCRT_getwc
@ cdecl getwc(ptr) MSVCRT_getwc
@ cdecl getwchar() MSVCRT_getwchar
@ cdecl getwchar() MSVCRT_getwchar
@
stub
ilogb
@
cdecl ilogb(double) MSVCR120_
ilogb
@
stub
ilogbf
@
cdecl ilogbf(float) MSVCR120_
ilogbf
@
stub
ilogbl
@
cdecl ilogbl(double) MSVCR120_
ilogbl
@ stub imaxabs
@ stub imaxabs
@ stub imaxdiv
@ stub imaxdiv
@ cdecl is_wctype(long long) ntdll.iswctype
@ cdecl is_wctype(long long) ntdll.iswctype
...
...
dlls/msvcr120_app/msvcr120_app.spec
View file @
8c8d8e80
...
@@ -1871,9 +1871,9 @@
...
@@ -1871,9 +1871,9 @@
@ cdecl gets_s(ptr long) msvcr120.gets_s
@ cdecl gets_s(ptr long) msvcr120.gets_s
@ cdecl getwc(ptr) msvcr120.getwc
@ cdecl getwc(ptr) msvcr120.getwc
@ cdecl getwchar() msvcr120.getwchar
@ cdecl getwchar() msvcr120.getwchar
@
stub
ilogb
@
cdecl ilogb(double) msvcr120.
ilogb
@
stub
ilogbf
@
cdecl ilogbf(float) msvcr120.
ilogbf
@
stub
ilogbl
@
cdecl ilogbl(double) msvcr120.
ilogbl
@ stub imaxabs
@ stub imaxabs
@ stub imaxdiv
@ stub imaxdiv
@ cdecl isalnum(long) msvcr120.isalnum
@ cdecl isalnum(long) msvcr120.isalnum
...
...
dlls/msvcrt/math.c
View file @
8c8d8e80
...
@@ -3433,4 +3433,35 @@ double CDECL MSVCR120_creal(_Dcomplex z)
...
@@ -3433,4 +3433,35 @@ double CDECL MSVCR120_creal(_Dcomplex z)
return
z
.
x
;
return
z
.
x
;
}
}
int
CDECL
MSVCR120_ilogb
(
double
x
)
{
if
(
!
x
)
return
MSVCRT_FP_ILOGB0
;
if
(
isnan
(
x
))
return
MSVCRT_FP_ILOGBNAN
;
if
(
isinf
(
x
))
return
MSVCRT_INT_MAX
;
#ifdef HAVE_ILOGB
return
ilogb
(
x
);
#else
return
logb
(
x
);
#endif
}
int
CDECL
MSVCR120_ilogbf
(
float
x
)
{
if
(
!
x
)
return
MSVCRT_FP_ILOGB0
;
if
(
isnan
(
x
))
return
MSVCRT_FP_ILOGBNAN
;
if
(
isinf
(
x
))
return
MSVCRT_INT_MAX
;
#ifdef HAVE_ILOGBF
return
ilogbf
(
x
);
#else
return
logbf
(
x
);
#endif
}
int
CDECL
MSVCR120_ilogbl
(
LDOUBLE
x
)
{
return
MSVCR120_ilogb
(
x
);
}
#endif
/* _MSVCR_VER>=120 */
#endif
/* _MSVCR_VER>=120 */
dlls/msvcrt/msvcrt.h
View file @
8c8d8e80
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#define MSVCRT_INT_MAX 0x7fffffff
#define MSVCRT_LONG_MAX 0x7fffffff
#define MSVCRT_LONG_MAX 0x7fffffff
#define MSVCRT_LONG_MIN (-MSVCRT_LONG_MAX-1)
#define MSVCRT_LONG_MIN (-MSVCRT_LONG_MAX-1)
#define MSVCRT_ULONG_MAX 0xffffffff
#define MSVCRT_ULONG_MAX 0xffffffff
...
@@ -1187,6 +1188,9 @@ printf_arg arg_clbk_positional(void*, int, int, __ms_va_list*) DECLSPEC_HIDDEN;
...
@@ -1187,6 +1188,9 @@ printf_arg arg_clbk_positional(void*, int, int, __ms_va_list*) DECLSPEC_HIDDEN;
#define MSVCRT__OVERFLOW 3
#define MSVCRT__OVERFLOW 3
#define MSVCRT__UNDERFLOW 4
#define MSVCRT__UNDERFLOW 4
#define MSVCRT_FP_ILOGB0 (-MSVCRT_INT_MAX - 1)
#define MSVCRT_FP_ILOGBNAN MSVCRT_INT_MAX
typedef
struct
typedef
struct
{
{
float
f
;
float
f
;
...
...
dlls/ucrtbase/ucrtbase.spec
View file @
8c8d8e80
...
@@ -2341,9 +2341,9 @@
...
@@ -2341,9 +2341,9 @@
@ cdecl getwc(ptr) MSVCRT_getwc
@ cdecl getwc(ptr) MSVCRT_getwc
@ cdecl getwchar() MSVCRT_getwchar
@ cdecl getwchar() MSVCRT_getwchar
@ cdecl hypot(double double) _hypot
@ cdecl hypot(double double) _hypot
@
stub
ilogb
@
cdecl ilogb(double) MSVCR120_
ilogb
@
stub
ilogbf
@
cdecl ilogbf(float) MSVCR120_
ilogbf
@
stub
ilogbl
@
cdecl ilogbl(double) MSVCR120_
ilogbl
@ stub imaxabs
@ stub imaxabs
@ stub imaxdiv
@ stub imaxdiv
@ cdecl is_wctype(long long) ntdll.iswctype
@ cdecl is_wctype(long long) ntdll.iswctype
...
...
include/config.h.in
View file @
8c8d8e80
...
@@ -303,6 +303,12 @@
...
@@ -303,6 +303,12 @@
/* Define to 1 if you have the `if_nameindex' function. */
/* Define to 1 if you have the `if_nameindex' function. */
#undef HAVE_IF_NAMEINDEX
#undef HAVE_IF_NAMEINDEX
/* Define to 1 if you have the `ilogb' function. */
#undef HAVE_ILOGB
/* Define to 1 if you have the `ilogbf' function. */
#undef HAVE_ILOGBF
/* Define to 1 if you have the `inet_addr' function. */
/* Define to 1 if you have the `inet_addr' function. */
#undef HAVE_INET_ADDR
#undef HAVE_INET_ADDR
...
...
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