Re: [9fans] IEEE floats

2014-02-27 Thread erik quanstrom
> if you use the original declaration syntax of 40 years ago, > float must be promoted to double because the caller won't know the type, > but the ANSI declarator syntax that everyone ought to be using allows > the distinction between float and double to be maintained, and it is. > compare > > voi

Re: [9fans] IEEE floats

2014-02-27 Thread Charles Forsyth
On 27 February 2014 12:09, erik quanstrom wrote: > did they abolish the rule that float is promoted to double > on function call? or is this the equivalent of char fu(char) vs > int fu(int). > if you use the original declaration syntax of 40 years ago, float must be promoted to double because t

Re: [9fans] IEEE floats

2014-02-27 Thread erik quanstrom
On Thu Feb 27 06:54:22 EST 2014, st...@quintile.net wrote: > Porting stuff from the net (under ape) which wants to use IEEE floats. > i.e. ieee754_float32_t, powf(), fabsf() and log10f(). > > I could map these to plan9 floats and call the double version > of the transient functions, but is there a