Changeset 9eb0f9 in git


Ignore:
Timestamp:
May 23, 2011, 8:10:02 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
Children:
b2366e1febbada8a1c36d078ca1dff3e839e9988
Parents:
2f0314b588c9d83a52b5e2ded26f85edb4ea9593
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-05-23 20:10:02+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:49+01:00
Message:
FIX: test coeffs using factory AND ntl (without public use of factory in coeffs.h)
Location:
libpolys/coeffs
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/Makefile.am

    r2f0314 r9eb0f9  
    5151check_PROGRAMS = $(TESTS)
    5252
    53 test_SOURCES   = test.cc gftables
    54 test_g_SOURCES = test.cc gftables
     53test_SOURCES   = test.cc
     54test_g_SOURCES = test.cc
    5555
    5656test_LDADD   = -lcoeffs ${GMP_LIBS} -lresources -lreporter -lmisc ${FACTORY_LIBS} ${NTL_LIBS} -lomalloc
    5757test_g_LDADD = -lcoeffs_g ${GMP_LIBS} -lresources_g -lreporter_g -lmisc_g ${FACTORY_LIBS} ${NTL_LIBS} -lomalloc_g
    5858
    59 
     59test: gftables
     60test_g: gftables
    6061
    6162test_CFLAGS   = -O3 -fomit-frame-pointer ${PIPE}
  • libpolys/coeffs/coeffs.h

    r2f0314 r9eb0f9  
    1616
    1717#ifdef HAVE_FACTORY
    18  #include <factory/factory.h>
    19 //class CanonicalForm;
     18class CanonicalForm;
    2019#endif
    2120
  • libpolys/coeffs/longrat.cc

    r2f0314 r9eb0f9  
    88
    99#include <coeffs/longrat.h>
     10
    1011
    1112// 64 bit version:
     
    4344#include <string.h>
    4445#include <float.h>
     46
    4547#include "config.h"
    4648#include <coeffs/coeffs.h>
    4749#include <reporter/reporter.h>
    4850#include <omalloc/omalloc.h>
     51
    4952#include <coeffs/numbers.h>
    5053#include <coeffs/modulop.h>
    5154#include <coeffs/shortfl.h>
    5255#include <coeffs/mpr_complex.h>
    53 #include <coeffs/longrat.h>
    54 
     56
     57#ifdef HAVE_FACTORY
     58#include <factory/factory.h>
     59#endif
    5560
    5661#ifndef BYTES_PER_MP_LIMB
  • libpolys/coeffs/longrat.h

    r2f0314 r9eb0f9  
    88* ABSTRACT: computation with long rational numbers
    99*/
    10 #include <coeffs/coeffs.h>
    11 // #include "config.h"
    12 #include "si_gmp.h"
    1310#include <misc/auxiliary.h>
    1411#include <omalloc/omalloc.h>
     12#include <coeffs/si_gmp.h>
     13#include <coeffs/coeffs.h>
    1514
    1615#define SR_HDL(A) ((long)(A))
  • libpolys/coeffs/numbers.cc

    r2f0314 r9eb0f9  
    2929#include <coeffs/rintegers.h>
    3030#endif
     31
     32#ifdef HAVE_FACTORY
     33#include <factory/factory.h>
     34#endif
     35
    3136#include <string.h>
    3237#include <stdlib.h>
  • libpolys/coeffs/test.cc

    r2f0314 r9eb0f9  
    44
    55#include <reporter/reporter.h>
     6#include <resources/feResource.h>
    67
    78#include <coeffs/coeffs.h>
     
    1718#include <coeffs/rmodulo2m.h>
    1819#include <coeffs/rintegers.h>
     20
     21
    1922#ifdef HAVE_FACTORY
    2023int initializeGMP(){ return 1; }
     
    254257
    255258
    256 
    257 
    258 int main()
    259 {
     259int main( int, char *argv[] )
     260{
     261  feInitResources(argv[0]);
     262
     263  StringSetS("ressources in use (as reported by feStringAppendResources(0):\n");
     264  feStringAppendResources(0);
     265  PrintS(StringAppendS("\n"));
     266
     267
    260268  int c = 0;
    261269 
Note: See TracChangeset for help on using the changeset viewer.