~showard314/ubuntu/karmic/r-base/remove_start_comments

« back to all changes in this revision

Viewing changes to src/extra/trio/trio.c

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2009-01-19 12:40:24 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090119124024-abxsf4e0y7713w9m
Tags: 2.8.1-2
debian/control: Add another Build-Depends: exclusion for the 
'kfreebsd-i386 kfreebsd-amd64 hurd-i386' architecture to openjdk-6-jdk.
Thanks to Petr Salinger for the heads-up.               (Closes: 512324)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2956
2956
          number *= trio_powl(dblBase, (trio_long_double_t)-exponent);
2957
2957
          isExponentNegative = (exponent < 0);
2958
2958
          uExponent = (isExponentNegative) ? -exponent : exponent;
2959
 
          if (isHex)
 
2959
          if (isHex) {
2960
2960
            uExponent *= 4; /* log16(2) */
 
2961
            if (number >= 8) {
 
2962
                uExponent -= 3; number /= 8;
 
2963
            } else if (number >= 4) {
 
2964
                uExponent -= 2; number /= 4;
 
2965
            } else if (number >= 2) {
 
2966
                uExponent -= 1; number /= 2;
 
2967
            }
 
2968
          }
2961
2969
#if TRIO_FEATURE_QUOTE
2962
2970
          /* No thousand separators */
2963
2971
          flags &= ~FLAGS_QUOTE;