comp.lang.ada
 help / color / mirror / Atom feed
From: Duncan Sands <duncan.sands@math.u-psud.fr>
Subject: Re: IEEE arithmetic
Date: Fri, 13 Sep 2002 18:06:10 +0200
Date: 2002-09-13T18:06:10+02:00	[thread overview]
Message-ID: <mailman.1031933222.23090.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <wccelbx284j.fsf@shell01.TheWorld.com>

> If you use the version SofCheck's AdaMagic that generates C,
> you can call C macros from Ada using pragma Import.
> Most compilers don't allow that, however.
>
> Another way to call a macro is to write a C function that calls the
> macro.  Then use pragma Import to call the C function from Ada.  That's
> kind of annoying if the reason it's a macro is to get inline code.  But
> that's probably not your case -- you probably don't want to set the mode
> repeatedly in a tight loop.

I did consider (and still am considering) writing such a C function.
My only objection to it is... that it is ugly!

Thanks for helping,

Duncan.



  reply	other threads:[~2002-09-13 16:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-13  7:40 IEEE arithmetic Duncan Sands
2002-09-13 13:03 ` Georg Bauhaus
2002-09-13 13:19   ` Duncan Sands
2002-09-13 15:59 ` Robert A Duff
2002-09-13 16:06   ` Duncan Sands [this message]
2002-09-14  0:46     ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox