The SHARC 2136x has a "short float" of 16 bits, but I cannot find a
corresponding type in the compiler documentation. Does their C/C++
support 16-bit floats? Pointers would be appreciated.
% Randy Yates % "Though you ride on the wheels of tomorrow,
%% Fuquay-Varina, NC % you still wander the fields of your
%%% 919-577-9882 % sorrow."
%%%% <email@example.com> % '21st Century Man', *Time*, ELO
Posted by Tim Wescott●July 4, 2008
Randy Yates wrote:
> The SHARC 2136x has a "short float" of 16 bits, but I cannot find a
> corresponding type in the compiler documentation. Does their C/C++
> support 16-bit floats? Pointers would be appreciated.
If the compiler doesn't support short floats, it probably doesn't
support pointers to them either. (sorry, couldn't resist...).
If they use the gnu toolchain, it would be much more difficult to insert
a new (and to my mind somewhat dubious) new data type into the language.
If you're programming in C++, why not make your own data type?
Arithmetic types are particularly easy to implement -- all of the
operator overloading is very well defined for you. If you do it right
you'll incur the cost of a function call on each operation, but not much
Wescott Design Services
Do you need to implement control loops in software?
"Applied Control Theory for Embedded Systems" gives you just what it says.
See details at http://www.wescottdesign.com/actfes/actfes.html
Posted by Nils●July 4, 2008
Tim Wescott wrote:
> If they use the gnu toolchain, it would be much more difficult to insert
> a new (and to my mind somewhat dubious) new data type into the language.
It is not *that* dubious. 16 bit floating point values have become
somewhat of a standard to store light intensities in graphics. Most
graphic cards on PC even support such float-modes as a native
representation and can do calculations in it.
100% of our work is cutting-edge DSP
We are a small, high tech, sonar-processing company that develops state-of-the-art sonar, signal processing software systems used in naval aircraft.
* 60-75% signal processing algorithm development
* 25% real time code development in C++ Full relocation will be provided for the right candidate (e.g. relocation package up to $20,000).