Home | History | Annotate | Download | only in hwc

Lines Matching defs:_n

205     Rational(void) : _n(0), _d(1) {}
206 Rational(uint32_t n, uint32_t d) : _n(n), _d(d) {}
207 uint32_t numerator(void) { return _n; }
209 void setNumerator(uint32_t numerator) { _n = numerator; }
221 operator double() const { return (double) _n / (double) _d; }
225 uint32_t _n;
1341 if (((uint64_t) _n * other._d)
1342 == ((uint64_t) _d * other._n)) { return true; }
1349 if (((uint64_t) _n * other._d)
1350 < ((uint64_t) _d * other._n)) { return true; }
1359 out << _n << '/' << _d;