summaryrefslogtreecommitdiff
path: root/src/lj_snap.c
diff options
context:
space:
mode:
authorMike Pall <mike>2011-05-16 19:31:07 +0200
committerMike Pall <mike>2011-05-16 19:32:47 +0200
commitfb46370e561bb74cca908980531b6092a34cf673 (patch)
tree33035a8fda14480408240e2115d863297969e744 /src/lj_snap.c
parentdab4bcafba789c7954dc4f90623c81365dcedb7f (diff)
downloadluajit2-fb46370e561bb74cca908980531b6092a34cf673.tar.gz
Cleanup of target dependencies.
Diffstat (limited to 'src/lj_snap.c')
-rw-r--r--src/lj_snap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c
index e1791b51..dd70ece1 100644
--- a/src/lj_snap.c
+++ b/src/lj_snap.c
@@ -392,8 +392,10 @@ const BCIns *lj_snap_restore(jit_State *J, void *exptr)
o->u32.lo = (uint32_t)*sps;
} else if (irt_isinteger(t)) {
setintV(o, *sps);
- } else if (!LJ_SOFTFP && irt_isnum(t)) {
+#if !LJ_SOFTFP
+ } else if (irt_isnum(t)) {
o->u64 = *(uint64_t *)sps;
+#endif
#if LJ_64
} else if (irt_islightud(t)) {
/* 64 bit lightuserdata which may escape already has the tag bits. */
@@ -411,8 +413,10 @@ const BCIns *lj_snap_restore(jit_State *J, void *exptr)
o->u32.lo = (uint32_t)ex->gpr[r-RID_MIN_GPR];
} else if (irt_isinteger(t)) {
setintV(o, (int32_t)ex->gpr[r-RID_MIN_GPR]);
- } else if (!LJ_SOFTFP && irt_isnum(t)) {
+#if !LJ_SOFTFP
+ } else if (irt_isnum(t)) {
setnumV(o, ex->fpr[r-RID_MIN_FPR]);
+#endif
#if LJ_64
} else if (irt_islightud(t)) {
/* 64 bit lightuserdata which may escape already has the tag bits. */