Home | History | Annotate | Download | only in hwc

Lines Matching defs:_n

204     Rational(void) : _n(0), _d(1) {}
205 Rational(uint32_t n, uint32_t d) : _n(n), _d(d) {}
206 uint32_t numerator(void) { return _n; }
208 void setNumerator(uint32_t numerator) { _n = numerator; }
220 operator double() const { return (double) _n / (double) _d; }
224 uint32_t _n;
1339 if (((uint64_t) _n * other._d)
1340 == ((uint64_t) _d * other._n)) { return true; }
1347 if (((uint64_t) _n * other._d)
1348 < ((uint64_t) _d * other._n)) { return true; }
1357 out << _n << '/' << _d;