This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
How about this slightly simpler patch which collects all the special cases in one place. Bubblestrapped and tested, OK for 4.0 and mainline?
! if (value == 0 || (value < 100 && value > 0.01)) edigits = 2; else ! edigits = 1 + (int) log10 (fabs (log10 (value)));
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |