- Timestamp:
- Apr 10, 2013, 10:05:02 AM (11 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 55cb6bd95ed2dc1ee1fe4d8f374124dfd3836e86
- Parents:
- 03e4a6b8f52593ef6a94a0f1176b8e693d9d2306
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-04-10 10:05:02+02:00
- git-committer:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2013-04-10 10:11:44+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/tgb.cc
r03e4a6 rc60380d 1469 1469 1470 1470 #define ENLARGE(pointer, type) pointer=(type*) omrealloc(pointer, c->array_lengths*sizeof(type)) 1471 1472 #define ENLARGE_ALIGN(pointer, type) {if(pointer)\ 1473 pointer=(type*)omReallocAligned(pointer, c->array_lengths*sizeof(type));\ 1474 else pointer=(type*)omAllocAligned(c->array_lengths*sizeof(type));} 1471 1475 // BOOLEAN corr=lenS_correct(c->strat); 1472 1476 int sugar; … … 1484 1488 assume (c->array_lengths >= c->n); 1485 1489 ENLARGE (c->T_deg, int); 1486 ENLARGE (c->tmp_pair_lm, poly);1487 ENLARGE (c->tmp_spn, sorted_pair_node *);1488 1489 ENLARGE (c->short_Exps, long);1490 ENLARGE_ALIGN (c->tmp_pair_lm, poly); 1491 ENLARGE_ALIGN (c->tmp_spn, sorted_pair_node *); 1492 1493 ENLARGE_ALIGN (c->short_Exps, long); 1490 1494 ENLARGE (c->lengths, int); 1491 1495 #ifndef HAVE_BOOST 1492 1496 #ifndef USE_STDVECBOOL 1493 1497 1494 ENLARGE (c->states, char *);1495 #endif 1496 #endif 1497 ENLARGE (c->gcd_of_terms, poly);1498 ENLARGE_ALIGN (c->states, char *); 1499 #endif 1500 #endif 1501 ENLARGE_ALIGN (c->gcd_of_terms, poly); 1498 1502 //if (c->weighted_lengths!=NULL) { 1499 ENLARGE (c->weighted_lengths, wlen_type);1503 ENLARGE_ALIGN (c->weighted_lengths, wlen_type); 1500 1504 //} 1501 //ENLARGE (c->S->m,poly);1505 //ENLARGE_ALIGN(c->S->m,poly); 1502 1506 } 1503 1507 pEnlargeSet (&c->S->m, c->n - 1, 1); … … 1550 1554 1551 1555 #undef ENLARGE 1556 #undef ENLARGE_ALIGN 1552 1557 if(p_GetComp (h, currRing) <= c->syz_comp) 1553 1558 { … … 3287 3292 h = omalloc (n * sizeof (int)); 3288 3293 lengths = (int *) h; 3289 weighted_lengths = (wlen_type *) om alloc(n * sizeof (wlen_type));3290 gcd_of_terms = (poly *) om alloc (n * sizeof (poly));3294 weighted_lengths = (wlen_type *) omAllocAligned (n * sizeof (wlen_type)); 3295 gcd_of_terms = (poly *) omAlloc (n * sizeof (poly)); 3291 3296 3292 3297 short_Exps = (long *) omalloc (n * sizeof (long));
Note: See TracChangeset
for help on using the changeset viewer.