server: Avoid using the long double type on non-x86 platforms.

We especially may want to support x86 on ARM, where long double is not an 80-bit
type.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-12-21 21:55:41 -06:00 committed by Alexandre Julliard
parent 6ef7cd4e3a
commit 674d70a611
1 changed files with 5 additions and 3 deletions

View File

@ -666,9 +666,11 @@ static void dump_varargs_context( const char *prefix, data_size_t size )
ctx.fp.i386_regs.data_off, ctx.fp.i386_regs.data_sel, ctx.fp.i386_regs.cr0npx ); ctx.fp.i386_regs.data_off, ctx.fp.i386_regs.data_sel, ctx.fp.i386_regs.cr0npx );
for (i = 0; i < 8; i++) for (i = 0; i < 8; i++)
{ {
long double reg = 0; unsigned __int64 reg[2];
memcpy( &reg, &ctx.fp.i386_regs.regs[10 * i], 10 ); memset( reg, 0, sizeof(reg) );
fprintf( stderr, ",fp.reg%u=%Lg", i, reg ); memcpy( reg, &ctx.fp.i386_regs.regs[10 * i], 10 );
fprintf( stderr, ",fp.reg%u=", i );
dump_uint128( "", reg );
} }
} }
if (ctx.flags & SERVER_CTX_EXTENDED_REGISTERS) if (ctx.flags & SERVER_CTX_EXTENDED_REGISTERS)