~jakub/helenos/ia64-revival

« back to all changes in this revision

Viewing changes to uspace/lib/softint/generic/multiplication.c

  • Committer: Jakub Jermar
  • Date: 2011-04-13 14:45:41 UTC
  • mfrom: (527.1.397 main-clone)
  • Revision ID: jakub@jermar.eu-20110413144541-x0j3r1zxqhsljx1o
MergeĀ mainlineĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        /* t2 & (1ull << 63) - if this bit is set in unsigned long long,
109
109
         * result does not fit in signed one */
110
110
        if (SOFTINT_CHECK_OF && ((t2 < t1) || (t2 & (1ull << 63)))) {
111
 
                // error, overflow
 
111
                /* Error, overflow */
112
112
                return (neg ? INT64_MIN : INT64_MAX);
113
113
        }
114
114