Changeset 630ca9 in git
- Timestamp:
- Mar 23, 2011, 6:39:21 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 20d9284f2e2a49cb47ad41808ddefe8b058c7647
- Parents:
- 1b49fffcc09b3cc35d86a2d919252c972d6515eb
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-03-23 18:39:21+01:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:04:12+01:00
- Location:
- libpolys
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/Makefile.am
r1b49ff r630ca9 1 AM_CXXFLAGS = -fno-implicit-templates --no-exceptions2 INCLUDES = -I${top_srcdir}/.. -I${top_srcdir}/../.. -I${top_builddir}/.. -I${srcdir}3 AM_LDFLAGS = -L${top_builddir}/../coeffs -L${top_builddir}/../reporter -L${top_builddir}/../resources -L${top_builddir}/../../omalloc4 AM_CPPFLAGS = -DNDEBUG -DOM_NDEBUG5 6 SOURCES = \7 gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \8 modulop.cc mpr_complex.cc \9 numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc10 11 1 lib_LIBRARIES=libcoeffs.a libcoeffs_g.a 12 2 13 libcoeffs_a_SOURCES = ${SOURCES} 14 libcoeffs_g_a_SOURCES = ${SOURCES} 3 CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions 15 4 16 libcoeffs_g_a_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long 17 # -fdiagnostics-show-option 18 noinst_HEADERS= \ 19 gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \ 20 mpr_complex.h mpr_global.h \ 21 rintegers.h rmodulo2m.h rmodulon.h shortfl.h 5 libcoeffs_a_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} 6 libcoeffs_g_a_CFLAGS = ${PIPE} 7 8 libcoeffs_a_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS} 9 libcoeffs_g_a_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} 10 # -fdiagnostics-show-option 11 12 libcoeffs_a_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H 13 libcoeffs_g_a_CPPFLAGS = -DHAVE_CONFIG_H 14 22 15 23 16 include_HEADERS = coeffs.h numbers.h 24 17 25 ## debug version: 18 noinst_HEADERS= \ 19 gnumpc.h gnumpfl.h longrat.h modulop.h ffields.h \ 20 rintegers.h rmodulo2m.h rmodulon.h shortfl.h \ 21 mpr_complex.h mpr_global.h 26 22 27 check_PROGRAMS=test test-g 23 INCLUDES = -I${top_srcdir}/.. -I${top_srcdir}/../.. -I${top_builddir}/.. -I${srcdir} 28 24 29 test_SOURCES=test.cc 30 test_g_SOURCES=test.cc 25 SOURCES = \ 26 numbers.cc rintegers.cc rmodulo2m.cc rmodulon.cc shortfl.cc \ 27 gnumpc.cc gnumpfl.cc longrat.cc longrat0.cc ffields.cc \ 28 modulop.cc mpr_complex.cc 29 libcoeffs_a_SOURCES = $(SOURCES) 30 libcoeffs_g_a_SOURCES = $(SOURCES) 31 31 32 test_LDADD = libcoeffs.a -lresources -lreporter -lgmp -lomalloc 33 test_g_LDADD = libcoeffs_g.a -lresources -lreporter -lgmp -lomalloc_debug 32 libcoeffs_a_includedir =$(includedir)/libpolys/coeffs 33 libcoeffs_g_a_includedir=$(includedir)/libpolys/coeffs 34 34 35 test_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long 36 # -fdiagnostics-show-option 35 COEFFSHEADERS = coeffs.h numbers.h 36 libcoeffs_a_include_HEADERS = $(COEFFSHEADERS) 37 libcoeffs_g_a_include_HEADERS = $(COEFFSHEADERS) 38 39 40 41 ## for testing... 42 AM_LDFLAGS = -L${top_builddir}/../coeffs -L${top_builddir}/../reporter -L${top_builddir}/../resources -L${top_builddir}/../../omalloc 43 44 check_PROGRAMS = test test-g 45 46 test_SOURCES = test.cc 47 test_g_SOURCES = test.cc 48 49 test_LDADD = libcoeffs.a -lresources -lreporter -lgmp -lomalloc 50 test_g_LDADD = libcoeffs_g.a -lresources_g -lreporter_g -lgmp -lomalloc_debug 51 52 53 test_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} 54 test_g_CFLAGS = ${PIPE} 55 56 test_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS} 57 test_g_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} 58 # -fdiagnostics-show-option 59 60 test_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H 61 test_g_CPPFLAGS = -DHAVE_CONFIG_H -
libpolys/coeffs/configure.ac
r1b49ff r630ca9 3 3 4 4 AC_PREREQ([2.65]) 5 AC_INIT([ FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])5 AC_INIT([coeffs], [3.1.2.sw]) 6 6 AM_INIT_AUTOMAKE 7 AC_CONFIG_SRCDIR([ rmodulon.h])7 AC_CONFIG_SRCDIR([coeffs.h]) 8 8 AC_CONFIG_HEADERS([config.h]) 9 9 … … 21 21 AC_PROG_INSTALL 22 22 AC_PROG_RANLIB 23 AM_PROG_CC_C_O 23 24 24 25 # Checks for libraries. -
libpolys/coeffs/longrat.cc
r1b49ff r630ca9 1385 1385 } 1386 1386 } 1387 nlTest(a, r);1388 1387 return a; 1389 1388 } … … 1552 1551 } 1553 1552 } 1554 nlTest(u, r);1555 1553 return u; 1556 1554 } … … 1776 1774 } 1777 1775 } 1778 nlTest(u, r);1779 1776 return u; 1780 1777 } … … 1790 1787 mpz_init_set_si(u->z,SR_TO_INT(a)); 1791 1788 mpz_mul_si(u->z,u->z,SR_TO_INT(b)); 1792 nlTest(u, r);1793 1789 return u; 1794 1790 } … … 1893 1889 } 1894 1890 } 1895 nlTest(u, r);1896 1891 return u; 1897 1892 } … … 2095 2090 return a; 2096 2091 } 2097 return _nlNeg_NoImm(a); 2092 a = _nlNeg_NoImm(a); 2093 nlTest(a, R); 2094 return a; 2095 2098 2096 } 2099 2097 … … 2103 2101 LINLINE number nlAdd (number a, number b, const coeffs R) 2104 2102 { 2105 number u;2106 2103 if (SR_HDL(a) & SR_HDL(b) & SR_INT) 2107 2104 { … … 2112 2109 return nlRInit(SR_TO_INT(r)); 2113 2110 } 2114 return _nlAdd_aNoImm_OR_bNoImm(a, b); 2111 number u = _nlAdd_aNoImm_OR_bNoImm(a, b); 2112 nlTest(u, R); 2113 return u; 2115 2114 } 2116 2115 … … 2284 2283 return nlRInit(SR_HDL(u)>>2); 2285 2284 } 2286 return _nlMult_aImm_bImm_rNoImm(a, b); 2287 } 2288 return _nlMult_aNoImm_OR_bNoImm(a, b); 2285 number u = _nlMult_aImm_bImm_rNoImm(a, b); 2286 nlTest(u, R); 2287 return u; 2288 2289 } 2290 number u = _nlMult_aNoImm_OR_bNoImm(a, b); 2291 nlTest(u, R); 2292 return u; 2293 2289 2294 } 2290 2295 … … 2305 2310 return nlRInit(SR_TO_INT(r)); 2306 2311 } 2307 return _nlSub_aNoImm_OR_bNoImm(a, b); 2312 number u = _nlSub_aNoImm_OR_bNoImm(a, b); 2313 nlTest(u, r); 2314 return u; 2315 2308 2316 } 2309 2317 -
libpolys/resources/Makefile.am
r1b49ff r630ca9 1 1 lib_LIBRARIES=libresources.a libresources_g.a 2 2 3 AM_CFLAGS = -O3 -w -fomit-frame-pointer ${PIPE} 4 CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions 5 AM_CXXFLAGS = -O3 -w -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS} 6 INCLUDES = -I${top_srcdir}/.. -I${top_srcdir}/../.. -I${top_builddir}/.. 7 AM_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H 3 CXXTEMPLFLAGS = -fno-implicit-templates --no-exceptions 4 5 libresources_a_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} 6 libresources_g_a_CFLAGS = ${PIPE} 7 8 libresources_a_CXXFLAGS = -O3 -fomit-frame-pointer --no-rtti ${PIPE} ${CXXTEMPLFLAGS} 9 libresources_g_a_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} ${CXXTEMPLFLAGS} 10 # -fdiagnostics-show-option 11 12 libresources_a_CPPFLAGS = -DNDEBUG -DOM_NDEBUG -DHAVE_CONFIG_H 13 libresources_g_a_CPPFLAGS = -DHAVE_CONFIG_H 14 15 INCLUDES = -I${top_srcdir}/.. -I${top_srcdir}/../.. -I${top_builddir}/.. 8 16 9 17 SOURCES = feFopen.cc feResource.cc 10 11 libresources_a_SOURCES = $(SOURCES) 12 13 libresources_a_includedir=$(includedir)/libpolys/resources 14 15 libresources_a_include_HEADERS = feFopen.h feResource.h 16 18 libresources_a_SOURCES = $(SOURCES) 17 19 libresources_g_a_SOURCES = $(SOURCES) 18 20 19 libresources_g_a_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long 20 # -fdiagnostics-show-option 21 libresources_a_includedir =$(includedir)/libpolys/resources 22 libresources_g_a_includedir=$(includedir)/libpolys/resources 23 24 RESOURCESHEADERS = feFopen.h feResource.h 25 libresources_a_include_HEADERS = $(RESOURCESHEADERS) 26 libresources_g_a_include_HEADERS = $(RESOURCESHEADERS) 27 28 29 -
libpolys/resources/configure.ac
r1b49ff r630ca9 3 3 4 4 AC_PREREQ([2.65]) 5 AC_INIT([ FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])5 AC_INIT([resources], [3.1.2.sw]) 6 6 AM_INIT_AUTOMAKE 7 7 AC_CONFIG_SRCDIR([feFopen.h]) … … 14 14 AC_PROG_INSTALL 15 15 AC_PROG_RANLIB 16 AM_PROG_CC_C_O 16 17 17 18 # Checks for libraries. -
libpolys/resources/feFopen.cc
r1b49ff r630ca9 6 6 #include <unistd.h> 7 7 8 #include <resources/config.h> 9 8 #include "config.h" 10 9 #include <misc/auxiliary.h> 11 10 -
libpolys/resources/feResource.cc
r1b49ff r630ca9 11 11 #include <string.h> 12 12 13 #include <resources/config.h> 14 13 #include "config.h" 15 14 #include <misc/auxiliary.h> 16 15
Note: See TracChangeset
for help on using the changeset viewer.