[PD] long int precision lost

Tim Blechmann TimBlechmann at gmx.net
Tue Dec 7 02:49:53 CET 2004


> #define float double
> int main(int argc, char* argv[]) {
>    printf("sizeof(float) = %d\n", sizeof(float));
>    printf("sizeof(double) = %d\n", sizeof(double));
>    return 0;
> }
> 
> prints:
> sizeof(float) = 8
> sizeof(double) = 8
> 
> without the #define, it prints:
> sizeof(float) = 4
> sizeof(double) = 8

sure, it will probably work, if you recompile the WHOLE system including
EVERY library, at least every library that is used by all the externals
... well, i hope, none of the libraries uses hand-coded assembler code
that requires a float to be a float ... 
definitely the sse instructions in the devel_ branch will crash your
system if you are trying to use them!!!  

be warned ... tim

-- 
mailto:TimBlechmann at gmx.de    ICQ: 96771783
http://www.mokabar.tk

After one look at this planet any visitor from outer space 
would say "I want to see the manager."
				      William S. Burroughs




More information about the Pd-list mailing list