May 01, 2024, 03:12:33 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


The CDECL calling convention

Started by Parker, December 30, 2005, 02:47:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Parker

I've heard that floating point number returns are stored in 'st(0)' when it is a subroutine created in C, and I recently saw a discussion about this. Since I don't know about double precision numbers, and don't know how Aurora handles these calls, can I use atof() in Aurora?

Ionic Wind Support Team

Yes.

atof() actually returns a DOUBLE type.  When declare as CDECL Aurora knows that the double return is in st0

Paul.
Ionic Wind Support Team