Changeset 7f7b2a in git


Ignore:
Timestamp:
Sep 7, 2010, 2:41:38 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
1cce476261db2ed619587e1afbc7252f6a5f79da
Parents:
1b078e7ee8f4659359c8f3e8fdbfdd1134099749
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2010-09-07 14:41:38+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:55:28+01:00
Message:
more debuggin messages for errors while initing/assumes
fixed long-long error on Mac OS X.
Location:
coeffs
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • coeffs/Makefile.in

    r1b078e r7f7b2a  
    8686
    8787CCG             = ${CC}
    88 CXXG            = ${CXX} -Wextra -Wall -pedantic -fdiagnostics-show-option
     88CXXG            = ${CXX} -Wextra -Wall -pedantic -fdiagnostics-show-option -Wno-long-long
    8989OBJSG1 := $(CXXSOURCES:.cc=.og)
    9090
  • coeffs/config.h.in

    r1b078e r7f7b2a  
    55#pragma GCC diagnostic ignored "-Wunused-parameter"
    66#pragma GCC diagnostic ignored "-Wunused-variable"
     7#pragma GCC diagnostic ignored "-Wlong-long"
  • coeffs/ffields.cc

    r1b078e r7f7b2a  
    130130BOOLEAN nfDBTest (number a, const char *f, const int l, const coeffs r)
    131131{
     132  assume( r->m_nfPlus1Table != NULL );
    132133  if (((long)a<0L) || ((long)a>(long)r->m_nfCharQ))
    133134  {
     
    186187number nfInit (int i, const coeffs r)
    187188{
     189  assume( r->m_nfPlus1Table != NULL );
    188190  // Hmm .. this is just to prevent initialization
    189191  // from nfInitChar to go into an infinite loop
     
    861863  if( (p->GFDegree * check) > sixteenlog2 )
    862864  {
    863     Werror("illegal size");
     865    Werror("Sorry: illegal size: %u ^ %u", p->GFChar, p->GFDegree );
     866    return; // EXCEPTION? OR RETURN AN ERROR!???
     867  }
     868
     869  int c = pow (p->GFChar, p->GFDegree);
     870
     871  nfReadTable(c, r);
     872 
     873  if( r->m_nfPlus1Table == NULL )
     874  {
     875    Werror("Sorry: cannot init lookup table!");
    864876    return;
    865877  }
    866 
    867   int c = pow (p->GFChar, p->GFDegree);
    868 
    869   nfReadTable(c, r);
    870 
     878 
     879 
    871880  assume (r -> m_nfCharQ > 0);
    872881
    873882  r->ch = r->m_nfCharP;
    874 
    875 }
    876 
     883  assume( r->m_nfPlus1Table != NULL );
     884
     885}
  • coeffs/modulop.h

    r1b078e r7f7b2a  
    169169
    170170#ifdef NV_OPS
     171#pragma GCC diagnostic ignored "-Wlong-long"
    171172static inline number nvMultM(number a, number b, const coeffs r)
    172173{
Note: See TracChangeset for help on using the changeset viewer.