Changeset 2ac2935 in git
- Timestamp:
- Dec 7, 2012, 3:41:00 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- ec1006cbd9971c4271d05aefada775ef29d762a6
- Parents:
- 7e18d198148353f88708cfa20f738ac338cb1f556554ca42ebe1277c9afe7990970390905a6e1cf0
- Files:
-
- 1 added
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
.gdbinit
r7e18d1 r2ac2935 6 6 ### http://sourceware.org/gdb/onlinedocs/gdb/Define.html#Define 7 7 8 # print poly 8 # print poly ring 9 9 define pp 10 if $argc > 0 11 print $arg0 12 if $arg0 != 0 13 print *$arg0 10 14 11 if $argc > 0 12 print $arg0 13 if $arg0 != 0 14 print *$arg0 15 16 if $argc == 2 17 call p_Write($arg0, $arg1) 18 end 15 if $argc == 2 16 call p_Write($arg0, $arg1) 17 else 18 call p_Write($arg0, currRing) 19 end 20 end 19 21 end 20 22 end 21 22 23 end24 23 24 run 25 backtrace -
IntegerProgramming/binomial.cc
r7e18d1 r2ac2935 1847 1847 1848 1848 exponent_vector[i]*=-1; 1849 1849 return *this; 1850 1850 } 1851 1851 -
Makefile.am
r6554ca4 r2ac2935 37 37 38 38 bin_SCRIPTS = libsingular-config 39 -
Singular/Makefile.am
r7e18d1 r2ac2935 208 208 endif 209 209 210 AMLDFLAGS = -L${ abs_top_builddir}/Singular -L${abs_top_builddir}/numeric -L${abs_top_builddir}/kernel -L${abs_top_builddir}/libpolys/polys -L${top_builddir}/libpolys/coeffs -L${top_builddir}/libpolys/reporter -L${top_builddir}/libpolys/misc $(USE_FACTORY) -L${abs_top_builddir}/omalloc -L${abs_top_builddir}/findexec210 AMLDFLAGS = -L${top_builddir}/Singular -L${top_builddir}/numeric -L${top_builddir}/kernel -L${top_builddir}/libpolys/polys -L${top_builddir}/libpolys/coeffs -L${top_builddir}/libpolys/reporter -L${top_builddir}/libpolys/misc $(USE_FACTORY) -L${top_builddir}/omalloc -L${top_builddir}/findexec 211 211 212 212 Singular_CFLAGS = -O3 -fomit-frame-pointer ${PIPE} … … 222 222 Singularg_SOURCES = tesths.cc fegetopt.c fegetopt.h utils.cc utils.h 223 223 224 Singular_LDADD = libSingular.la ${ abs_top_builddir}/numeric/libnumeric.la ${abs_top_builddir}/kernel/libkernel.la ${abs_top_builddir}/libpolys/polys/libpolys.la -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}225 Singularg_LDADD = libSingular_g.la ${ abs_top_builddir}/numeric/libnumeric_g.la ${abs_top_builddir}/kernel/libkernel_g.la ${abs_top_builddir}/libpolys/polys/libpolys_g.la -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD}224 Singular_LDADD = libSingular.la ${top_builddir}/numeric/libnumeric.la ${top_builddir}/kernel/libkernel.la ${top_builddir}/libpolys/polys/libpolys.la -lcoeffs -lreporter -lmisc $(FACTORY_LIBS) -lomalloc -lfindexec $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} 225 Singularg_LDADD = libSingular_g.la ${top_builddir}/numeric/libnumeric_g.la ${top_builddir}/kernel/libkernel_g.la ${top_builddir}/libpolys/polys/libpolys_g.la -lcoeffs_g -lreporter_g -lmisc_g $(FACTORY_LIBS) -lomalloc_g -lfindexec_g $(FLINT_LIBS) $(NTL_LIBS) $(GMP_LIBS) ${USEPPROCSDYNAMICLDFLAGS} ${USEPPROCSDYNAMICLD} 226 226 227 227 Singular_CPPFLAGS = ${AM_CPPFLAGS} -DHAVE_CONFIG_H -DNDEBUG -DOM_NDEBUG … … 311 311 ########################### TEST ######################### 312 312 313 TESTS_ENVIRONMENT = SINGULARPATH='${ abs_top_builddir}/Singular/LIB:${abs_top_srcdir}/Singular/LIB:${abs_top_builddir}/libpolys/polys/.libs:${abs_top_builddir}/factory/gftables'314 TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${ abs_top_builddir}'313 TESTS_ENVIRONMENT = SINGULARPATH='${top_builddir}/Singular/LIB:${top_srcdir}/Singular/LIB:${top_builddir}/libpolys/polys/.libs:${top_builddir}/factory/gftables' 314 TESTS_ENVIRONMENT += SINGULAR_ROOT_DIR='${top_builddir}' 315 315 316 316 if WANT_DEBUG … … 371 371 372 372 feOpt.inc: feOptGen 373 ${ abs_builddir}/feOptGen373 ${builddir}/feOptGen 374 374 375 375 feOptES.inc: feOptES 376 ${ abs_builddir}/feOptES376 ${builddir}/feOptES 377 377 378 378 feOptTS.inc: feOptTS 379 ${ abs_builddir}/feOptTS379 ${builddir}/feOptTS 380 380 381 381 plural_cmd.inc iparith.inc: gentable1 382 ${ abs_builddir}/gentable1382 ${builddir}/gentable1 383 383 384 384 # # fake rule to fix parallel make http://www.gnu.org/s/hello/manual/automake/Multiple-Outputs.html … … 386 386 387 387 388 gftables: ${abs_top_srcdir}/factory/gftables 389 ln -snf ${abs_top_srcdir}/factory/gftables ${abs_builddir}/gftables 390 391 MOD: ${abs_top_builddir}/libpolys/polys/.libs 392 ln -snf ${abs_top_builddir}/libpolys/polys/.libs/ ${abs_builddir}/MOD 393 388 gftables: ${top_srcdir}/factory/gftables 389 ln -snf ${top_srcdir}/factory/gftables ${builddir}/gftables 390 391 MOD: ${top_builddir}/libpolys/polys/.libs 392 ln -snf ${top_builddir}/libpolys/polys/.libs/ ${builddir}/MOD 394 393 395 394 if PYTHON_USE -
Singular/Minor.cc
r7e18d1 r2ac2935 147 147 /* We should never reach this line of code. */ 148 148 assume(false); 149 return -1; 149 150 } 150 151 … … 178 179 /* We should never reach this line of code. */ 179 180 assume(false); 181 return -1; 180 182 } 181 183 … … 251 253 /* We should never reach this line of code. */ 252 254 assume(false); 255 return -1; 253 256 } 254 257 … … 282 285 /* We should never reach this line of code. */ 283 286 assume(false); 287 return -1; 284 288 } 285 289 -
Singular/blackbox.h
r6554ca4 r2ac2935 58 58 59 59 /// default procedure blackboxDefaultOp3, to be called as "default:" branch 60 BOOLEAN blackbox DefaultOp3(int op,leftv l, leftv r1,leftv r2, leftv r3);60 BOOLEAN blackbox_default_Op3(int op,leftv l, leftv r1,leftv r2, leftv r3); 61 61 62 62 /// default procedure blackboxDefaultOpM, to be called as "default:" branch … … 70 70 /// return the name to the type given by t (r/o) 71 71 const char * getBlackboxName(const int t); 72 /// used by scanner: returns ROOTDECL for known types (and the type number in t) 72 /// used by scanner: returns ROOT_DECL for known types 73 /// (and the type number in @c tok) 73 74 int blackboxIsCmd(const char *n, int & tok); 74 75 /// define a new type -
Singular/extra.cc
r7e18d1 r2ac2935 3180 3180 { 3181 3181 if(strcmp(sys_cmd, "AltVarStart") == 0) 3182 res->data = (void*) scaFirstAltVar(r);3182 res->data = (void*)(long)scaFirstAltVar(r); 3183 3183 else 3184 res->data = (void*) scaLastAltVar(r);3184 res->data = (void*)(long)scaLastAltVar(r); 3185 3185 return FALSE; 3186 3186 } -
Singular/iparith.cc
r6554ca4 r2ac2935 5206 5206 } 5207 5207 return TRUE; 5208 } 5209 5210 BOOLEAN jjLOADLIB(const char* libname, BOOLEAN autoexport) 5211 { 5212 leftv v = (leftv)omAlloc0Bin(sleftv_bin); 5213 v->data = (char*)libname; 5214 v->rtyp = STRING_CMD; 5215 BOOLEAN res = jjLOAD(NULL, v, autoexport); 5216 omFreeBin(v, sleftv_bin); 5217 5218 return res; 5208 5219 } 5209 5220 -
Singular/ipid.cc
r6554ca4 r2ac2935 194 194 IDLEV(h) = level; 195 195 IDNEXT(h) = this; 196 BOOLEAN at_start=(this==IDROOT); 196 197 h->id_i=iiS2I(s); 197 198 if (init) … … 221 222 } 222 223 // -------------------------------------------------------- 224 if (at_start) 225 IDNEXT(h) = IDROOT; 223 226 return h; 224 227 } -
Singular/links/ndbm.cc
r7e18d1 r2ac2935 291 291 #endif 292 292 } 293 if (((short *)db->dbm_pagbuf)[0] != 0) 293 short tmp; 294 memcpy(&tmp, db->dbm_pagbuf, sizeof(short)); 295 if (tmp != 0) 294 296 { 295 297 item = makdatum(db->dbm_pagbuf, db->dbm_keyptr); -
Singular/minpoly.cc
r7e18d1 r2ac2935 7 7 8 8 #include<cmath> 9 #include <cstdlib> 9 10 #include "config.h" 10 11 #include<kernel/mod2.h> … … 385 386 } 386 387 } 388 abort(); 387 389 } 388 390 -
Singular/misc_ip.cc
r7e18d1 r2ac2935 1117 1117 type = nRegister(n_transExt, ntInitChar); 1118 1118 assume(type == n_transExt); 1119 1120 (void)type; 1119 1121 } 1120 1122 #endif -
Singular/pyobject.cc
r6554ca4 r2ac2935 15 15 #include "config.h" 16 16 #include <kernel/mod2.h> 17 //#include <misc/auxiliary.h> 18 //#include "newstruct.h" 19 20 #include <Python.h> 21 22 #include <Singular/ipid.h> 23 #include <Singular/blackbox.h> 24 #include <Singular/lists.h> 25 #include <Singular/ipid.h> 26 #include <Singular/ipshell.h> 27 #include <Singular/newstruct.h> 28 29 17 30 #include <misc/auxiliary.h> 18 #include "newstruct.h"19 31 20 32 #include <omalloc/omalloc.h> 21 33 22 34 #include <kernel/febase.h> 23 #include < kernel/intvec.h>35 #include <misc/intvec.h> 24 36 25 37 #include "subexpr.h" … … 27 39 #include "ipid.h" 28 40 #include "blackbox.h" 29 30 #include <Python.h> 41 #include "ipshell.h" 42 43 44 45 46 //#include <Python.h> 31 47 // #include <iterator> // std::distance 32 48 // #include <stdio.h> … … 48 64 /// Initialize unique (singleton) python interpreter instance, 49 65 /// and set Singular type identifier 50 static void init(id_type num 66 static void init(id_type num) { instance().m_id = num; } 51 67 52 68 /// Get Singular type identitfier … … 587 603 return FALSE; 588 604 589 return blackbox DefaultOp3(op, res, arg1, arg2, arg3);605 return blackbox_default_Op3(op, res, arg1, arg2, arg3); 590 606 } 591 607 … … 686 702 687 703 688 // forward declaration 689 int iiAddCproc(char *libname, char *procname, BOOLEAN pstatic, 690 BOOLEAN(*func)(leftv res, leftv v)); 691 692 #define ADD_C_PROC(name) iiAddCproc("", (char*)#name, FALSE, name); 693 694 695 void pyobject_init() 696 { 697 blackbox *b = (blackbox*)omAlloc0(sizeof(blackbox)); 698 b->blackbox_destroy = pyobject_destroy; 699 b->blackbox_String = pyobject_String; 700 b->blackbox_Init = pyobject_Init; 701 b->blackbox_Copy = pyobject_Copy; 702 b->blackbox_Assign = pyobject_Assign; 703 b->blackbox_Op1 = pyobject_Op1; 704 b->blackbox_Op2 = pyobject_Op2; 705 b->blackbox_Op3 = pyobject_Op3; 706 b->blackbox_OpM = pyobject_OpM; 707 b->data = omAlloc0(newstruct_desc_size()); 708 709 PythonInterpreter::init(setBlackboxStuff(b,"pyobject")); 710 711 ADD_C_PROC(python_import); 712 ADD_C_PROC(python_eval); 713 ADD_C_PROC(python_run); 714 } 715 716 extern "C" { void mod_init() { pyobject_init(); } } 717 704 705 blackbox* pyobject_blackbox(int& tok) { 706 if(blackboxIsCmd("pyobject", tok) != ROOT_DECL) 707 { 708 tok = setBlackboxStuff((blackbox*)omAlloc0(sizeof(blackbox)), 709 "pyobject"); 710 } 711 return getBlackboxStuff(tok); 712 } 713 714 715 716 #define PYOBJECT_ADD_C_PROC(name) \ 717 add_C_proc(currPack->libname, (char*)#name, FALSE, name); 718 719 typedef BOOLEAN (*func_type)(leftv, leftv); 720 void pyobject_init(int (*add_C_proc)(const char*, const char*, BOOLEAN, 721 func_type) ) 722 { 723 int tok = -1; 724 blackbox* bbx = pyobject_blackbox(tok); 725 if (bbx->blackbox_Init != pyobject_Init) 726 { 727 bbx->blackbox_destroy = pyobject_destroy; 728 bbx->blackbox_String = pyobject_String; 729 bbx->blackbox_Init = pyobject_Init; 730 bbx->blackbox_Copy = pyobject_Copy; 731 bbx->blackbox_Assign = pyobject_Assign; 732 bbx->blackbox_Op1 = pyobject_Op1; 733 bbx->blackbox_Op2 = pyobject_Op2; 734 bbx->blackbox_Op3 = pyobject_Op3; 735 bbx->blackbox_OpM = pyobject_OpM; 736 bbx->data = omAlloc0(newstruct_desc_size()); 737 738 PythonInterpreter::init(tok); 739 740 PYOBJECT_ADD_C_PROC(python_import); 741 PYOBJECT_ADD_C_PROC(python_eval); 742 PYOBJECT_ADD_C_PROC(python_run); 743 } 744 } 745 #undef PYOBJECT_ADD_C_PROC 746 747 #ifndef EMBED_PYTHON 748 extern "C" { 749 void mod_init(SModulFunctions* psModulFunctions) 750 { 751 pyobject_init(psModulFunctions->iiAddCproc); 752 } 753 } 754 #endif -
Singular/pyobject_setup.cc
r6554ca4 r2ac2935 16 16 #include <kernel/mod2.h> 17 17 #include <kernel/febase.h> 18 #include <Singular/blackbox.h> 19 #include <Singular/ipshell.h> 18 20 19 21 /* whether pyobject module is linked statically or dynamically */ 22 23 #ifdef EMBED_PYTHON // Case: we include the pyobject interface in the binary 24 20 25 #ifdef HAVE_PYTHON 26 #include "pyobject.cc" 27 static BOOLEAN pyobject_load() 28 { 29 pyobject_init(iiAddCproc); 30 return FALSE; 31 } 21 32 22 #if defined(HAVE_STATIC) 23 #ifdef HAVE_STATIC_PYTHON 24 #define HAVE_STATIC_PYOBJECT 25 #endif 26 #else 27 #ifdef EMBED_PYTHON 28 #define HAVE_STATIC_PYOBJECT 29 #else 30 #define HAVE_DYNAMIC_PYOBJECT 31 #endif 32 #endif 33 #else // Forced embedding, but no (development version of) python available! 34 static BOOLEAN pyobject_load() { return TRUE; } 33 35 #endif 34 36 35 # ifdef HAVE_STATIC_PYOBJECT // Case: link pyobject interface statically 36 #include "pyobject.cc" 37 void pyobject_setup() { pyobject_init(); } 37 38 # else // Case: pyobject may be loaded from a dynamic module (prefered variant) 39 // Note: we do not need python at compile time. 40 static BOOLEAN pyobject_load() 41 { 42 BOOLEAN jjLOADLIB(const char* libname, BOOLEAN autoexport); 43 return jjLOADLIB("pyobject.so", TRUE); 44 } 45 #endif 38 46 39 47 40 # elif defined(HAVE_DYNAMIC_PYOBJECT) // Case: pyobject is dynamic module (prefered variant)41 48 42 // forward declaration for Singular/iplib.cc 43 void* binary_module_function(const char* lib, const char* func); 44 void pyobject_setup() 49 /// blackbox support - initialization via autoloading 50 void* pyobject_autoload(blackbox* bbx) 45 51 { 46 void* fktn = binary_module_function("pyobject", "mod_init"); 47 if (fktn) (* reinterpret_cast<void (*)()>(fktn) )(); 48 else Werror("python related functions are not available"); 52 if (pyobject_load()) return NULL; 53 return bbx->blackbox_Init(bbx); 49 54 } 50 55 51 #else // Case: no python 52 void pyobject_setup() { } 56 void pyobject_default_destroy(blackbox *b, void *d) 57 { 58 Werror("Python-based functionality not available!"); 59 } 53 60 54 #endif // HAVE_PYTHON 61 // Setting up an empty blackbox type, which can be filled with pyobject 62 void pyobject_setup() 63 { 64 blackbox *bbx = (blackbox*)omAlloc0(sizeof(blackbox)); 65 bbx->blackbox_Init = pyobject_autoload; 66 bbx->blackbox_destroy = pyobject_default_destroy; 67 setBlackboxStuff(bbx, "pyobject"); 68 } 55 69 -
Singular/tesths.cc
r6554ca4 r2ac2935 43 43 #include "fegetopt.h" 44 44 45 //#include "pyobject_setup.h"45 #include "pyobject_setup.h" 46 46 47 47 #include <unistd.h> -
configure.ac
r7e18d1 r2ac2935 13 13 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules 14 14 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) 15 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 15 16 16 17 -
dyn_modules/bigintm/Makefile.am
r7e18d1 r2ac2935 31 31 32 32 AMLDFLAGS = 33 # -L${ abs_top_builddir}/Singular -L${abs_top_builddir}/numeric -L${abs_top_builddir}/kernel \34 # -L${ abs_top_builddir}/libpolys/polys $(USE_FACTORY) -L${abs_top_builddir}/omalloc -L${abs_top_builddir}/findexec33 # -L${top_builddir}/Singular -L${top_builddir}/numeric -L${top_builddir}/kernel \ 34 # -L${top_builddir}/libpolys/polys $(USE_FACTORY) -L${top_builddir}/omalloc -L${top_builddir}/findexec 35 35 36 36 -
dyn_modules/syzextra/Makefile.am
r7e18d1 r2ac2935 31 31 32 32 AMLDFLAGS = 33 # -L${ abs_top_builddir}/Singular -L${abs_top_builddir}/numeric -L${abs_top_builddir}/kernel \34 # -L${ abs_top_builddir}/libpolys/polys $(USE_FACTORY) -L${abs_top_builddir}/omalloc -L${abs_top_builddir}/findexec33 # -L${top_builddir}/Singular -L${top_builddir}/numeric -L${top_builddir}/kernel \ 34 # -L${top_builddir}/libpolys/polys $(USE_FACTORY) -L${top_builddir}/omalloc -L${top_builddir}/findexec 35 35 36 36 -
dyn_modules/syzextra/mod_main.cc
r7e18d1 r2ac2935 934 934 935 935 NoReturn(res); 936 return false; 936 937 } 937 938 -
factory/Makefile.am
r7e18d1 r2ac2935 18 18 19 19 libfactory_la_CXXFLAGS = -O3 -fomit-frame-pointer ${CXXTEMPLFLAGS} 20 libfactory_la_LIBADD = ${ abs_builddir}/libfac/libfac.la $(FLINT_LIBS) ${GMP_LIBS} ${NTL_LIBS}20 libfactory_la_LIBADD = ${builddir}/libfac/libfac.la $(FLINT_LIBS) ${GMP_LIBS} ${NTL_LIBS} 21 21 libfactory_la_LDFLAGS = -release ${PACKAGE_VERSION} 22 22 libfactory_g_la_CXXFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${CXXTEMPLFLAGS} 23 libfactory_g_la_LIBADD = ${ abs_builddir}/libfac/libfac_g.la $(FLINT_LIBS) ${GMP_LIBS} ${NTL_LIBS}23 libfactory_g_la_LIBADD = ${builddir}/libfac/libfac_g.la $(FLINT_LIBS) ${GMP_LIBS} ${NTL_LIBS} 24 24 libfactory_g_la_LDFLAGS = -release ${PACKAGE_VERSION} 25 25 … … 304 304 check_PROGRAMS = $(TESTS) 305 305 306 AMLDFLAGS = -L${ abs_builddir}306 AMLDFLAGS = -L${builddir} 307 307 308 308 TESTSSOURCES = test.cc -
factory/configure.ac
r7e18d1 r2ac2935 22 22 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules 23 23 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) 24 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 24 25 25 26 -
factory/facFqBivar.cc
r7e18d1 r2ac2935 6364 6364 { 6365 6365 #ifdef HAVE_FLINT 6366 nmod_mat_clear (FLINTN); 6366 if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp)) 6367 nmod_mat_clear (FLINTN); 6367 6368 #endif 6368 6369 delete [] bounds; … … 6379 6380 { 6380 6381 #ifdef HAVE_FLINT 6381 nmod_mat_clear (FLINTN); 6382 if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp)) 6383 nmod_mat_clear (FLINTN); 6382 6384 #endif 6383 6385 delete [] bounds; … … 6427 6429 if (result.length() == nmod_mat_ncols (FLINTN)) 6428 6430 { 6429 nmod_mat_clear (FLINTN); 6431 if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp)) 6432 nmod_mat_clear (FLINTN); 6430 6433 #else 6431 6434 if (result.length() == NTLN.NumCols()) … … 6441 6444 if (result.length() == NTLNe.NumCols()) 6442 6445 { 6443 #ifdef HAVE_FLINT6444 nmod_mat_clear (FLINTN);6445 #endif6446 6446 delete [] factorsFoundIndex; 6447 6447 delete [] bounds; … … 6504 6504 if (result.length() == NTLNe.NumCols()) 6505 6505 { 6506 #ifdef HAVE_FLINT6507 nmod_mat_clear (FLINTN);6508 #endif6509 6506 delete [] factorsFoundIndex; 6510 6507 delete [] bounds; … … 6582 6579 if (result.length() == NTLNe.NumCols()) 6583 6580 { 6584 #ifdef HAVE_FLINT6585 nmod_mat_clear (FLINTN);6586 #endif6587 6581 delete [] bounds; 6588 6582 return Union (result, smallFactors); … … 6728 6722 { 6729 6723 #ifdef HAVE_FLINT 6730 nmod_mat_clear (FLINTN); 6724 if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp)) 6725 nmod_mat_clear (FLINTN); 6731 6726 #endif 6732 6727 delete [] bounds; … … 6747 6742 { 6748 6743 #ifdef HAVE_FLINT 6749 nmod_mat_clear (FLINTN); 6744 if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp)) 6745 nmod_mat_clear (FLINTN); 6750 6746 #endif 6751 6747 result.append (bufF); … … 6753 6749 } 6754 6750 #ifdef HAVE_FLINT 6755 nmod_mat_clear (FLINTN); 6751 if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp)) 6752 nmod_mat_clear (FLINTN); 6756 6753 #endif 6757 6754 return Union (result, henselLiftAndLatticeRecombi (bufF, bufUniFactors, … … 6812 6809 if (result.length()== NTLNe.NumCols()) 6813 6810 { 6814 #ifdef HAVE_FLINT6815 nmod_mat_clear (FLINTN);6816 #endif6817 6811 delete [] bounds; 6818 6812 result= Union (result, smallFactors); … … 6871 6865 if (result.length() == NTLNe.NumCols()) 6872 6866 { 6873 #ifdef HAVE_FLINT6874 nmod_mat_clear (FLINTN);6875 #endif6876 6867 delete [] bounds; 6877 6868 result= Union (result, smallFactors); … … 6891 6882 bounds= computeBounds (F, d, isIrreducible); 6892 6883 #ifdef HAVE_FLINT 6893 nmod_mat_clear (FLINTN); 6884 if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp)) 6885 nmod_mat_clear (FLINTN); 6894 6886 #endif 6895 6887 if (isIrreducible) -
findexec/configure.ac
r7e18d1 r2ac2935 9 9 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules 10 10 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) 11 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 11 12 12 13 -
libpolys/coeffs/Makefile.am
r7e18d1 r2ac2935 51 51 endif 52 52 53 AMLDFLAGS = -L${ abs_top_builddir}/coeffs -L${abs_top_builddir}/reporter -L${top_builddir}/misc ${USE_FACTORY} -L${top_builddir}/../omalloc -L${abs_top_builddir}/../findexec53 AMLDFLAGS = -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/misc ${USE_FACTORY} -L${top_builddir}/../omalloc -L${top_builddir}/../findexec 54 54 55 55 TESTS_ENVIRONMENT = SINGULARPATH='${top_srcdir}/../factory:${top_builddir}/../factory' -
libpolys/coeffs/longrat.cc
r7e18d1 r2ac2935 2545 2545 if (mpz_cmp(tmp,P)<0) 2546 2546 { 2547 // return N/B2548 z=ALLOC_RNUMBER();2549 #ifdef LDEBUG2550 z->debug=123456;2551 #endif2552 2547 if (mpz_isNeg(B)) 2553 2548 { … … 2555 2550 mpz_neg(N,N); 2556 2551 } 2557 mpz_init_set(z->z,N); 2558 mpz_init_set(z->n,B); 2559 z->s = 0; 2560 nlNormalize(z,r); 2552 // check for gcd(N,B)==1 2553 mpz_gcd(tmp,N,B); 2554 if (mpz_cmp_ui(tmp,1)==0) 2555 { 2556 // return N/B 2557 z=ALLOC_RNUMBER(); 2558 #ifdef LDEBUG 2559 z->debug=123456; 2560 #endif 2561 mpz_init_set(z->z,N); 2562 mpz_init_set(z->n,B); 2563 z->s = 0; 2564 nlNormalize(z,r); 2565 } 2566 else 2567 { 2568 // return nN (the input) instead of "fail" 2569 z=nlCopy(nN,r); 2570 } 2561 2571 break; 2562 2572 } -
libpolys/configure.ac
r7e18d1 r2ac2935 9 9 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules 10 10 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) 11 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 11 12 12 13 -
libpolys/misc/auxiliary.h.in
r7e18d1 r2ac2935 161 161 // #endif 162 162 163 static const int MAX_INT_LEN= 11;164 163 typedef void* ADDRESS; 165 164 -
libpolys/misc/mylimits.h
r7e18d1 r2ac2935 9 9 #define _MYLIMITS_H 10 10 11 /* Maximum/minimum value an `signed int' (in Singular interpreter) can hold. */ 12 const int MAX_INT_VAL = 0x7fffffff; 13 const int MAX_INT_LEN = 11; 11 14 #include <limits.h> 12 #define MAX_INT_VAL 0x7fffffff13 15 14 16 #endif /* _MYLIMITS_H */ -
libpolys/polys/Makefile.am
r7e18d1 r2ac2935 155 155 156 156 templates_p_Procs_Generate_LDADD = -lreporter -lmisc -lomalloc -lfindexec 157 templates_p_Procs_Generate_LDFLAGS = -L${ abs_builddir} -L${abs_top_builddir}/coeffs -L${abs_top_builddir}/reporter -L${top_builddir}/misc -L${abs_top_builddir}/../omalloc -L${abs_top_builddir}/../findexec157 templates_p_Procs_Generate_LDFLAGS = -L${builddir} -L${top_builddir}/coeffs -L${top_builddir}/reporter -L${top_builddir}/misc -L${top_builddir}/../omalloc -L${top_builddir}/../findexec 158 158 159 159 templates/p_Procs.inc: templates/p_Procs_Generate -
libpolys/polys/ext_fields/transext.cc
r7e18d1 r2ac2935 1239 1239 void ntNormalize (number &a, const coeffs cf) 1240 1240 { 1241 if ((a!=NULL) &&(DEN(a)!=NULL))1241 if ((a!=NULL)) 1242 1242 { 1243 1243 definiteGcdCancellation(a, cf, FALSE); … … 1862 1862 ntNormalize(n, cf); 1863 1863 1864 fraction f = (fraction)n ;1864 fraction f = (fraction)ntGetDenom (n, cf); 1865 1865 1866 1866 assume( f != NULL ); 1867 1867 1868 const poly den = DEN(f);1868 const poly den = NUM(f); 1869 1869 1870 1870 if( den == NULL ) // ?? / 1 ? … … 1879 1879 // TODO: move the following to factory? 1880 1880 poly gcd = singclap_gcd(p_Copy(cand, R), p_Copy(den, R), R); // gcd(cand, den) is monic no mater leading coeffs! :(((( 1881 if (nCoeff_is_Q (Q)) 1882 { 1883 number LcGcd= n_Gcd (p_GetCoeff (cand, R), p_GetCoeff(den, R), Q); 1884 gcd = p_Mult_nn(gcd, LcGcd, R); 1885 } 1881 1886 // assume( n_IsOne(pGetCoeff(gcd), Q) ); // TODO: this may be wrong... 1882 1887 cand = p_Mult_q(cand, p_Copy(den, R), R); // cand *= den -
libpolys/polys/monomials/monomials.h
r7e18d1 r2ac2935 42 42 // next 43 43 #define pNext(p) ((p)->next) 44 #define pIter(p) ( (p) = (p)->next)44 #define pIter(p) (void)((p) = (p)->next) 45 45 46 46 // coeff -
libpolys/polys/monomials/p_polys.cc
r7e18d1 r2ac2935 1908 1908 static number p_InitContent(poly ph, const ring r); 1909 1909 1910 #define CLEARENUMERATORS 01910 #define CLEARENUMERATORS 1 1911 1911 1912 1912 void p_Content(poly ph, const ring r) -
libpolys/polys/nc/old.gring.cc
r7e18d1 r2ac2935 2463 2463 matrix M = r->GetNC()->MT[UPMATELEM(i,j,rN)]; 2464 2464 /* return(M); */ 2465 /* 2465 2466 int sizeofres; 2466 2467 if (metric==0) … … 2472 2473 sizeofres=sizeof(number); 2473 2474 } 2475 */ 2474 2476 matrix res=mpNew(size,size); 2475 2477 int s; -
numeric/mpr_base.cc
r7e18d1 r2ac2935 727 727 assume( i > 0 ); 728 728 poly iter= p; 729 for ( int j= 1; (j < i) && (iter!=NULL); j++ ) iter=pIter(iter);729 for ( int j= 1; (j < i) && (iter!=NULL); j++ ) pIter(iter); 730 730 return iter; 731 731 } -
omalloc/Makefile.am
r7e18d1 r2ac2935 33 33 EXTRA_DIST = omalloc.c omtTestAlloc.c omtTest.h omMmap.c 34 34 35 AM_CPPFLAGS =-I${ abs_top_srcdir}/.. -I${abs_top_builddir}/..35 AM_CPPFLAGS =-I${top_srcdir}/.. -I${top_builddir}/.. 36 36 37 37 libomalloc_la_SOURCES=$(SOURCES) $(noinst_HEADERS) … … 67 67 ## Test program 68 68 ## 69 # AM_LDFLAGS = -L${ abs_top_builddir}/omalloc -L${abs_top_builddir}/../omalloc69 # AM_LDFLAGS = -L${top_builddir}/omalloc -L${top_builddir}/../omalloc 70 70 71 71 … … 92 92 omtTest_s_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} 93 93 omtTest_s_g_LDADD = libomalloc_g.la 94 omtTest_s_g_LDFLAGS = -L${ abs_top_builddir}/omalloc -L${abs_top_builddir}/../omalloc -static94 omtTest_s_g_LDFLAGS = -L${top_builddir}/omalloc -L${top_builddir}/../omalloc -static 95 95 96 96 omtTest_s_m_CPPFLAGS= ${AM_CPPFLAGS} -DOM_TEST_MALLOC -DHAVE_CONFIG_H 97 97 omtTest_s_m_SOURCES = $(OMTTESTSSOURCES) 98 98 omtTest_s_m_LDADD = libomalloc_g.la 99 omtTest_s_m_LDFLAGS = -L${ abs_top_builddir}/omalloc -L${abs_top_builddir}/../omalloc -static99 omtTest_s_m_LDFLAGS = -L${top_builddir}/omalloc -L${top_builddir}/../omalloc -static 100 100 101 101 omtTest_s_r_SOURCES = $(OMTTESTSSOURCES) … … 103 103 omtTest_s_r_CFLAGS = -O3 ${PIPE} 104 104 omtTest_s_r_LDADD = libomalloc.la 105 omtTest_s_r_LDFLAGS = -L${ abs_top_builddir}/omalloc -L${abs_top_builddir}/../omalloc -static105 omtTest_s_r_LDFLAGS = -L${top_builddir}/omalloc -L${top_builddir}/../omalloc -static 106 106 107 107 … … 111 111 omtTest_d_g_CFLAGS = -g -Wextra -Wall -pedantic -Wno-long-long ${PIPE} 112 112 omtTest_d_g_LDADD = libomalloc_g.la 113 omtTest_d_g_LDFLAGS = -L${ abs_top_builddir}/omalloc -L${abs_top_builddir}/../omalloc113 omtTest_d_g_LDFLAGS = -L${top_builddir}/omalloc -L${top_builddir}/../omalloc 114 114 115 115 omtTest_d_m_CPPFLAGS= ${AM_CPPFLAGS} -DOM_TEST_MALLOC -DHAVE_CONFIG_H 116 116 omtTest_d_m_SOURCES = $(OMTTESTSSOURCES) 117 117 omtTest_d_m_LDADD = libomalloc_g.la 118 omtTest_d_m_LDFLAGS = -L${ abs_top_builddir}/omalloc -L${abs_top_builddir}/../omalloc118 omtTest_d_m_LDFLAGS = -L${top_builddir}/omalloc -L${top_builddir}/../omalloc 119 119 120 120 omtTest_d_r_SOURCES = $(OMTTESTSSOURCES) … … 122 122 omtTest_d_r_CFLAGS = -O3 ${PIPE} 123 123 omtTest_d_r_LDADD = libomalloc.la 124 omtTest_d_r_LDFLAGS = -L${ abs_top_builddir}/omalloc -L${abs_top_builddir}/../omalloc124 omtTest_d_r_LDFLAGS = -L${top_builddir}/omalloc -L${top_builddir}/../omalloc -
omalloc/configure.ac
r7e18d1 r2ac2935 16 16 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules 17 17 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) 18 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 18 19 19 20 -
xalloc/configure.ac
r7e18d1 r2ac2935 8 8 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules 9 9 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) 10 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 10 11 11 12
Note: See TracChangeset
for help on using the changeset viewer.