[gmpi] Re: Topic 3: Cross platform


Am Freitag, 14.03.03, um 18:40 Uhr (Europe/Berlin) schrieb Silver Blade:


int8, int16, int32, int64

uint8, uint16, uint32, uint64

I think typedefs like these are in C99 and we should probably use those.

float32, float64, float80

These don't make much sense. Just use float/double.


Why do typedefs like uint8, uint16, etc. make sense to you but float32,
float64, and float80 do not?

Possibly because, if working with the range -1.0 to +1.0, float32 and float64 might not affect the range?

For example, 64-bit integers can hold a larger range of numbers than 32-bit
integers. But floats, I believe, while having the same limitations, can have
the same range (but different precision.)


-SB

But for performance sake sometimes you'll most likely prefer to use algorithmic conversion from float to int where the number of bits is essential. If explicit bitlength is needed at all, I'd need it in the floats...


;) Urs


---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission.

Archive: http://www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: