Home | History | Annotate | Download | only in hwc

Lines Matching defs:_n

206     Rational(void) : _n(0), _d(1) {}
207 Rational(uint32_t n, uint32_t d) : _n(n), _d(d) {}
208 uint32_t numerator(void) { return _n; }
210 void setNumerator(uint32_t numerator) { _n = numerator; }
222 operator double() const { return (double) _n / (double) _d; }
226 uint32_t _n;
1342 if (((uint64_t) _n * other._d)
1343 == ((uint64_t) _d * other._n)) { return true; }
1350 if (((uint64_t) _n * other._d)
1351 < ((uint64_t) _d * other._n)) { return true; }
1360 out << _n << '/' << _d;