|
Message-ID: <20120309155655.GD184@brightrain.aerifal.cx> Date: Fri, 9 Mar 2012 10:56:55 -0500 From: Rich Felker <dalias@...ifal.cx> To: musl@...ts.openwall.com Subject: Re: libm On Fri, Mar 09, 2012 at 12:09:46PM +0100, Szabolcs Nagy wrote: > * Rich Felker <dalias@...ifal.cx> [2012-03-09 05:22:39 -0500]: > > 2. You could add something like: > > #ifdef __GNUC__ > > #define __RETCAST(x) (__typeof__((x)) > > #else > > #define __RETCAST(x) > > #endif > > Then add __RETCAST((x)), __RETCAST((x)+(y)), etc. Some trick will be > > needed to make integer types result in a cast to double, though. > > hm the int->double and complex/real cases are tricky > > i thought +1.0 or +I would solve these, but that's wrong I think +0.0f might solve it. Isn't the promoted type of any integer type with float double? Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.