Re: FLoating value from native

Shawn Silverman <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Floats and doubles are primitives exactly like ints and longs, except 
their interpretation is different.  NatLib_LoadPrimitive will load a 
float, and NatLib_LoadWidePrimitive will load a double.  The process of 
returning a float or a double is exactly the same as returning an int 
or a long.  Simply fill R3:R0 or R7:R0 when your native method exits.

Hope that helps,

	-Shawn

On 31-Mar-04, at 6:27 AM, sharmila inamdar wrote:

> I am using DS80c390. I want to know whether we can get direct floating 
> point
> value form native layer ? How should it be returned in native and which
> format?
>
> The native example given with the TSDK talks about long and int return
> values. How do I handle float values ? Or I have to return a byte 
> array and
> then process it on the JVM layer?
>
>
> ..sharmila

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.