Merge pull request #11 from camthesaxman/64bit

finally fix 64-bit
This commit is contained in:
Marcus Huderle 2017-12-16 12:02:43 -08:00 committed by GitHub
commit 58c860d6c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -24,7 +24,7 @@ VPATH = $(srcdir)
CC = gcc
BASE_CFLAGS = -g -std=gnu11 -m32
BASE_CFLAGS = -g -std=gnu11
INCLUDES = -I. -I$(srcdir)

View File

@ -1085,8 +1085,10 @@
{
case MODE_FLOAT:
{
int i;
union real_extract u;
memcpy((char *)&u, (char *)&CONST_DOUBLE_LOW(operands[0]), sizeof u);
for (i = 0; i < sizeof (REAL_VALUE_TYPE) / sizeof (HOST_WIDE_INT); i++)
u.i[i] = XWINT(operands[0], 2 + i);
assemble_real (u.d, GET_MODE (operands[0]));
break;
}
@ -1107,8 +1109,10 @@
{
case MODE_FLOAT:
{
int i;
union real_extract u;
memcpy((char *)&u, (char *)&CONST_DOUBLE_LOW(operands[0]), sizeof u);
for (i = 0; i < sizeof (REAL_VALUE_TYPE) / sizeof (HOST_WIDE_INT); i++)
u.i[i] = XWINT(operands[0], 2 + i);
assemble_real (u.d, GET_MODE (operands[0]));
break;
}