Commit 674d70a6 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 6ef7cd4e
......@@ -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 );
for (i = 0; i < 8; i++)
{
long double reg = 0;
memcpy( &reg, &ctx.fp.i386_regs.regs[10 * i], 10 );
fprintf( stderr, ",fp.reg%u=%Lg", i, reg );
unsigned __int64 reg[2];
memset( reg, 0, sizeof(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)
......
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