Changeset 43385ca for src/libcfa/math.c


Ignore:
Timestamp:
Dec 16, 2016, 10:23:20 AM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, 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, resolv-new, with_gc
Children:
8f60f0b
Parents:
66f8528
Message:

uncomment multiple-value-returning functions in lib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/math.c

    r66f8528 r43385ca  
    1 // 
     1//
    22// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
    33//
    44// The contents of this file are covered under the licence agreement in the
    55// file "LICENCE" distributed with Cforall.
    6 // 
    7 // math.c -- 
    8 // 
     6//
     7// math.c --
     8//
    99// Author           : Peter A. Buhr
    1010// Created On       : Tue Apr 19 22:23:08 2016
     
    1212// Last Modified On : Sun Apr 24 08:52:31 2016
    1313// Update Count     : 75
    14 // 
     14//
    1515
    1616#include "math"
     
    3434long double remainder( long double x, long double y ) { return remainderl( x, y ); }
    3535
    36 // [ int, float ] remquo( float x, float y ) { int quo; x = remquof( x, y, &quo ); return [ quo, x ]; }
     36[ int, float ] remquo( float x, float y ) { int quo; x = remquof( x, y, &quo ); return [ quo, x ]; }
    3737float remquo( float x, float y, int *quo ) { return remquof( x, y, quo ); }
    38 // [ int, double ] remquo( double x, double y ) { int quo; x = remquo( x, y, &quo ); return [ quo, x ]; }
    39 // [ int, long double ] remquo( long double x, long double y ) { int quo; x = remquol( x, y, &quo ); return [ quo, x ]; }
     38[ int, double ] remquo( double x, double y ) { int quo; x = remquo( x, y, &quo ); return [ quo, x ]; }
     39[ int, long double ] remquo( long double x, long double y ) { int quo; x = remquol( x, y, &quo ); return [ quo, x ]; }
    4040long double remquo( long double x, long double y, int *quo ) { return remquol( x, y, quo ); }
    4141
    42 // [ int, float ] div( float x, float y ) { int quo; x = remquof( x, y, &quo ); return [ quo, x ]; }
     42[ int, float ] div( float x, float y ) { int quo; x = remquof( x, y, &quo ); return [ quo, x ]; }
    4343float div( float x, float y, int *quo ) { return remquof( x, y, quo ); }
    44 // [ int, double ] div( double x, double y ) { int quo; x = remquo( x, y, &quo ); return [ quo, x ]; }
    45 // [ int, long double ] div( long double x, long double y ) { int quo; x = remquol( x, y, &quo ); return [ quo, x ]; }
     44[ int, double ] div( double x, double y ) { int quo; x = remquo( x, y, &quo ); return [ quo, x ]; }
     45[ int, long double ] div( long double x, long double y ) { int quo; x = remquol( x, y, &quo ); return [ quo, x ]; }
    4646long double div( long double x, long double y, int *quo ) { return remquol( x, y, quo ); }
    4747
     
    278278long double ldexp( long double x, int exp2 ) { return ldexpl( x, exp2 ); }
    279279
    280 // [ float, float ] modf( float x ) { float i; x = modff( x, &i ); return [ i, x ]; }
     280[ float, float ] modf( float x ) { float i; x = modff( x, &i ); return [ i, x ]; }
    281281float modf( float x, float *i ) { return modff( x, i ); }
    282 // [ double, double ] modf( double x ) { double i; x = modf( x, &i ); return [ i, x ]; }
    283 // [ long double, long double ] modf( long double x ) { long double i; x = modfl( x, &i ); return [ i, x ]; }
     282[ double, double ] modf( double x ) { double i; x = modf( x, &i ); return [ i, x ]; }
     283[ long double, long double ] modf( long double x ) { long double i; x = modfl( x, &i ); return [ i, x ]; }
    284284long double modf( long double x, long double *i ) { return modfl( x, i ); }
    285285
Note: See TracChangeset for help on using the changeset viewer.