Opened 14 years ago

Closed 14 years ago

#103 closed defect (fixed)

x8664 callbacks, single-float return.

Reported by: gb Owned by: gb
Priority: major Milestone:
Component: Foreign Function Interface Version:
Keywords: Cc:


The "portable" parts of the expansion of DEFCALLBACK generated code which coerced SINGLE-FLOAT results to DOUBLE-FLOATs. This behavior is really PPC-specific, and should be moved to the platform-specific FFI code that deals with callback return values.

A symptom is that:

(defcallback two (:float)


(ff-call two :float)

would likely return the low 32 bits of 2.0d0 rather than 2.0f0.

(This was fixed in changeset:7134 and changeset:7135); the bug's been present in the x8664 FFI forever.)

Change History (1)

comment:1 Changed 14 years ago by gb

  • Resolution set to fixed
  • Status changed from new to closed

Closed already; just wanted to enter the bug.

Note: See TracTickets for help on using tickets.