"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/ntdll/misc.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

misc.c  (wine-5.12.tar.xz):misc.c  (wine-5.13.tar.xz)
skipping to change at line 161 skipping to change at line 161
} }
/********************************************************************* /*********************************************************************
* tan (NTDLL.@) * tan (NTDLL.@)
*/ */
double CDECL tan( double d ) double CDECL tan( double d )
{ {
return unix_funcs->tan( d ); return unix_funcs->tan( d );
} }
#if defined(__GNUC__) && defined(__i386__) #if (defined(__GNUC__) || defined(__clang__)) && defined(__i386__)
#define FPU_DOUBLE(var) double var; \ #define FPU_DOUBLE(var) double var; \
__asm__ __volatile__( "fstpl %0;fwait" : "=m" (var) : ) __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var) : )
#define FPU_DOUBLES(var1,var2) double var1,var2; \ #define FPU_DOUBLES(var1,var2) double var1,var2; \
__asm__ __volatile__( "fstpl %0;fwait" : "=m" (var2) : ); \ __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var2) : ); \
__asm__ __volatile__( "fstpl %0;fwait" : "=m" (var1) : ) __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var1) : )
/********************************************************************* /*********************************************************************
* _CIcos (NTDLL.@) * _CIcos (NTDLL.@)
*/ */
skipping to change at line 223 skipping to change at line 223
/********************************************************************* /*********************************************************************
* _ftol (NTDLL.@) * _ftol (NTDLL.@)
*/ */
LONGLONG CDECL _ftol(void) LONGLONG CDECL _ftol(void)
{ {
FPU_DOUBLE(x); FPU_DOUBLE(x);
return (LONGLONG)x; return (LONGLONG)x;
} }
#endif /* defined(__GNUC__) && defined(__i386__) */ #endif /* (defined(__GNUC__) || defined(__clang__)) && defined(__i386__) */
static void static void
NTDLL_mergesort( void *arr, void *barr, size_t elemsize, int(__cdecl *compar)(co nst void *, const void *), NTDLL_mergesort( void *arr, void *barr, size_t elemsize, int(__cdecl *compar)(co nst void *, const void *),
size_t left, size_t right ) size_t left, size_t right )
{ {
if(right>left) { if(right>left) {
size_t i, j, k, m; size_t i, j, k, m;
m=left+(right-left)/2; m=left+(right-left)/2;
NTDLL_mergesort( arr, barr, elemsize, compar, left, m); NTDLL_mergesort( arr, barr, elemsize, compar, left, m);
NTDLL_mergesort( arr, barr, elemsize, compar, m+1, right); NTDLL_mergesort( arr, barr, elemsize, compar, m+1, right);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)