comp.lang.ada
 help / color / mirror / Atom feed
* Convert Unsigned_32 to Ieee_Float_32
@ 2006-10-26 17:33 Richard Charts
  2006-10-26 21:19 ` Ian Caldwell
  2006-10-26 22:03 ` Keith Thompson
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Charts @ 2006-10-26 17:33 UTC (permalink / raw)


Well I ran into a fun error today.

Apparently on Green Hills,
Interfaces.Unsigned_32( [Some Item of Type Interfaces.Ieee_Float_32])
causes a compiler error.
C:\DOCUME~1\...\LOCALS~1\Temp\gh_lk1.s 2212: lwz f29,112(sp)
C:\DOCUME~1\...\LOCALS~1\Temp\gh_lk1.s 2212: ----^-
C:\DOCUME~1\...\LOCALS~1\Temp\gh_lk1.s 2212: expected register

So just to get my project compiling, I substituted:
Interfaces.Unsigned_32'Value(Interfaces.Ieee_Float_32'Image(Real_Obj.Resolution))

But that's a rather expensive convertion.
Can anyone recommend a better way until, I find a way around the above
error?
Thanks.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-26 22:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-26 17:33 Convert Unsigned_32 to Ieee_Float_32 Richard Charts
2006-10-26 21:19 ` Ian Caldwell
2006-10-26 22:03 ` Keith Thompson

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