Ignore:
Timestamp:
Nov 28, 2024, 3:31:29 PM (3 weeks ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
509ec82
Parents:
956b389 (diff), f5e37a4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/rational.cfa

    r956b389 r3e2e9b2  
    1010// Created On       : Wed Apr  6 17:54:28 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Nov 11 22:37:12 2024
    13 // Update Count     : 206
     12// Last Modified On : Wed Nov 27 18:06:43 2024
     13// Update Count     : 208
    1414//
    1515
     
    1919
    2020#pragma GCC visibility push(default)
     21
     22// Arithmetic, Relational
    2123
    2224forall( T | arithmetic( T ) ) {
     
    190192                return l = l / r;
    191193        } // ?/?
    192 
    193         // I/O
    194 
    195         forall( istype & | istream( istype ) | { istype & ?|?( istype &, T & ); } )
     194} // distribution
     195
     196// I/O
     197
     198forall( T ) {
     199        forall( istype & | istream( istype ) | { istype & ?|?( istype &, T & ); } | arithmetic( T ) )
    196200        istype & ?|?( istype & is, rational(T) & r ) {
    197201                is | r.numerator | r.denominator;
     
    210214} // distribution
    211215
     216// Exponentiation
     217
    212218forall( T | arithmetic( T ) | { T ?\?( T, unsigned long ); } ) {
    213219        rational(T) ?\?( rational(T) x, long int y ) {
     
    224230} // distribution
    225231
    226 // conversion
     232// Conversion
    227233
    228234forall( T | arithmetic( T ) | { double convert( T ); } )
Note: See TracChangeset for help on using the changeset viewer.