Skip to content

Commit

Permalink
msvcr120: Enable MSVCRT__nextafterf when _MSVCR_VER>=120.
Browse files Browse the repository at this point in the history
Signed-off-by: YongHao Hu <christopherwuy@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
  • Loading branch information
atlas-comstock authored and julliard committed Dec 29, 2015
1 parent e559ec2 commit 072f34b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
Expand Up @@ -293,9 +293,9 @@
@ stub nearbyint
@ stub nearbyintf
@ stub nearbyintl
@ stub nextafter
@ stub nextafterf
@ stub nextafterl
@ cdecl nextafter(double double) ucrtbase.nextafter
@ cdecl nextafterf(float float) ucrtbase.nextafterf
@ cdecl nextafterl(double double) ucrtbase.nextafterl
@ stub nexttoward
@ stub nexttowardf
@ stub nexttowardl
Expand Down
6 changes: 3 additions & 3 deletions dlls/msvcr120/msvcr120.spec
Expand Up @@ -2299,9 +2299,9 @@
@ stub nearbyint
@ stub nearbyintf
@ stub nearbyintl
@ stub nextafter
@ stub nextafterf
@ stub nextafterl
@ cdecl nextafter(double double) MSVCRT__nextafter
@ cdecl nextafterf(float float) MSVCRT__nextafterf
@ cdecl nextafterl(double double) MSVCRT__nextafter
@ stub nexttoward
@ stub nexttowardf
@ stub nexttowardl
Expand Down
6 changes: 3 additions & 3 deletions dlls/msvcr120_app/msvcr120_app.spec
Expand Up @@ -1962,9 +1962,9 @@
@ stub nearbyint
@ stub nearbyintf
@ stub nearbyintl
@ stub nextafter
@ stub nextafterf
@ stub nextafterl
@ cdecl nextafter(double double) msvcr120.nextafter
@ cdecl nextafterf(float float) msvcr120.nextafterf
@ cdecl nextafterl(double double) msvcr120.nextafterl
@ stub nexttoward
@ stub nexttowardf
@ stub nexttowardl
Expand Down
18 changes: 9 additions & 9 deletions dlls/msvcrt/math.c
Expand Up @@ -94,6 +94,15 @@ float CDECL MSVCRT__copysignf( float num, float sign )
return signbit(num) ? -num : num;
}

/*********************************************************************
* _nextafterf (MSVCRT.@)
*/
float CDECL MSVCRT__nextafterf( float num, float next )
{
if (!finitef(num) || !finitef(next)) *MSVCRT__errno() = MSVCRT_EDOM;
return nextafterf( num, next );
}

#endif
#if defined(__x86_64__) || defined(__arm__)

Expand Down Expand Up @@ -125,15 +134,6 @@ float CDECL MSVCRT__logbf( float num )
return logbf(num);
}

/*********************************************************************
* _nextafterf (MSVCRT.@)
*/
float CDECL MSVCRT__nextafterf( float num, float next )
{
if (!finitef(num) || !finitef(next)) *MSVCRT__errno() = MSVCRT_EDOM;
return nextafterf( num, next );
}

/*********************************************************************
* MSVCRT_acosf (MSVCRT.@)
*/
Expand Down
6 changes: 3 additions & 3 deletions dlls/ucrtbase/ucrtbase.spec
Expand Up @@ -2434,9 +2434,9 @@
@ stub nearbyint
@ stub nearbyintf
@ stub nearbyintl
@ stub nextafter
@ stub nextafterf
@ stub nextafterl
@ cdecl nextafter(double double) MSVCRT__nextafter
@ cdecl nextafterf(float float) MSVCRT__nextafterf
@ cdecl nextafterl(double double) MSVCRT__nextafter
@ stub nexttoward
@ stub nexttowardf
@ stub nexttowardl
Expand Down

0 comments on commit 072f34b

Please sign in to comment.