2008/10/10 Bernhard Reutner-Fischer <[EMAIL PROTECTED]>:
> On Fri, Oct 10, 2008 at 05:24:55PM +0200, Loïc Grenié wrote:
>>2008/10/10 Bernhard Reutner-Fischer <[EMAIL PROTECTED]>:
>>> On Fri, Oct 10, 2008 at 04:21:51PM +0200, Loïc Grenié wrote:
>>>>     I've noticed that busybox uses few functions from libm.
>>>
>>> Actually, you can turn off ASH_MATH_SUPPORT_64 FEATURE_AWK_MATH and
>>> you don't need libm at all.
>>
>>    dc uses pow. You are probably right that the other ones are not
>>  needed in "constrained" platforms (initrd or embedded).
>
> yes, and dc is probably not in your initramfs either. And if you need dc
> in you system (be it the initramfs or a normal system), then your system
> is most likely so big that you don't worry about libm anyway.

   dc is definitely in my initramfs. Not so much for the "pow" function but
  for the basic four operations. I should probably use $(( )), right ? As for
  size, adding dc is 2035 bytes on x86_32 while libm is 141KB, not
  exactly in the same league !

         Loïc
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to