On Thu, Jan 08, 2015 at 07:42:32PM +0100, Uros Bizjak wrote: > > I don't know how portable scalbnl actually is in reality, so it would be > > nice to hear from port maintainers whether say newlib, android, darwin, > > cygwin, aix etc. have it. > > Newlib has it. > > Other than that: > > exp2(), exp2f(), exp2l(): > _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= > 200112L; > or cc -std=c99 > > scalbln(), scalblnf(), scalblnl(): > _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || > _POSIX_C_SOURCE >= 200112L; > or cc -std=c99 > > Since we are replacing exp2 with scalbln, we have the same > requirements as before, at least we won't regress here.
The patch is ok then. If it is missing somewhere, we can always check for it in configure and add a val *= pow (2.0, exp); fallback that should be more portable. Jakub