Csound Csound-dev Csound-tekno Search About

Re: float vs. double speed

Date1997-02-18 02:24
FromStephen Barrass
SubjectRe: float vs. double speed
> Surely this is just a matter of #defining a type to use in the  
> csound source and people can build binaries either way. It seems  
> quite reasonable to me that some platforms will run better with  
> floats, and others with doubles, so why not let it be different on  
> different platforms?

the sun platform automatically converts floats to doubles
i guess oher platforms that are optimised for doubles would do the same
and you have the option to force single precision with a compile flag -fsingle

more generally gnu cc has a similar flag
gcc has -fshort-double, 
-fshort-double
          Use the same size for double as for float

stephen

stephen.barrass@cmis.csiro.au                                     @   *     ~
ftp://ftp.cbr.dit.csiro.au/staff/stephen/stephen.html           whiz pop splash