From: Dave McGuire <mcguire@ne...> - 2007-02-26 18:37:10
On Feb 26, 2007, at 7:39 AM, rhoddy mair wrote:
> Does anybody know how to use or apply complex numbers in sdcc?
I can't think of any reason offhand why one wouldn't do it the
same way as one would with any other C compiler. In the past (though
admittedly not with SDCC) I've simply used a struct containing floats
or doubles for both the real and imaginary components, and functions
that take them as parameters for manipulation. All that should be
fine with SDCC.
Port Charlotte, FL
If you ask me SDCC will never support complex numbers.
It doesn't even support double floats. SDCC is meant for
> rhoddy mair schrieb:
> > Does anybody know how to use or apply complex numbers in sdcc?
> AFAIK sdcc does not support complex numbers yet. C99 support is uncomplete.
From: Philipp Klaus Krause <pkk@sp...> - 2007-06-26 17:16:33
Maarten Brock wrote:
> If you ask me SDCC will never support complex numbers.
> It doesn't even support double floats. SDCC is meant for
> SMALL devices.
C99 has complex numbers with both single and double precision. Support
for single precision complex numbers could be built on top of float
support. Complex numbers are often useful for representing points /
vectors in a plane.
I'm currently writing a game for a Z80-based device where this would be
useful; representing points by comples numbers is used in simple
(outline-based) pattern recognition tasks, too, which some might want to
do on embedded devices.
Get latest updates about Open Source Projects, Conferences and News.