Changeset a493682 for src/libcfa/rational
- Timestamp:
- Jul 17, 2017, 1:55:22 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- b46e3bd
- Parents:
- bf30ab3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/rational
rbf30ab3 ra493682 31 31 int ?>?( T, T ); 32 32 int ?>=?( T, T ); 33 void ?{}( T *, zero_t );34 void ?{}( T *, one_t );33 void ?{}( T &, zero_t ); 34 void ?{}( T &, one_t ); 35 35 T +?( T ); 36 36 T -?( T ); … … 54 54 55 55 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 56 void ?{}( Rational(RationalImpl) *r );56 void ?{}( Rational(RationalImpl) & r ); 57 57 58 58 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 59 void ?{}( Rational(RationalImpl) *r, RationalImpl n );59 void ?{}( Rational(RationalImpl) & r, RationalImpl n ); 60 60 61 61 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 62 void ?{}( Rational(RationalImpl) *r, RationalImpl n, RationalImpl d );62 void ?{}( Rational(RationalImpl) & r, RationalImpl n, RationalImpl d ); 63 63 64 64 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 65 void ?{}( Rational(RationalImpl) *r, zero_t );65 void ?{}( Rational(RationalImpl) & r, zero_t ); 66 66 67 67 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 68 void ?{}( Rational(RationalImpl) *r, one_t );68 void ?{}( Rational(RationalImpl) & r, one_t ); 69 69 70 70 // numerator/denominator getter … … 77 77 78 78 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 79 [ RationalImpl, RationalImpl ] ?=?( *[ RationalImpl, RationalImpl ] dest, Rational(RationalImpl) src );79 [ RationalImpl, RationalImpl ] ?=?( & [ RationalImpl, RationalImpl ] dest, Rational(RationalImpl) src ); 80 80 81 81 // numerator/denominator setter
Note:
See TracChangeset
for help on using the changeset viewer.