Changeset 1baf4f in git for factory


Ignore:
Timestamp:
Sep 23, 2004, 6:51:48 PM (20 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
de201b4001686b521e9142a44217781de47d292b
Parents:
daf8e173eb494f2eded1d6f2f0908fae7c441082
Message:
*hannes: retry for gcd


git-svn-id: file:///usr/local/Singular/svn/trunk@7489 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
factory
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • factory/cf_gcd.cc

    rdaf8e1 r1baf4f  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: cf_gcd.cc,v 1.23 2004-01-20 15:39:52 Singular Exp $ */
     2/* $Id: cf_gcd.cc,v 1.24 2004-09-23 16:51:48 Singular Exp $ */
    33
    44#include <config.h>
     
    542542                Off( SW_RATIONAL );
    543543                l = gcd_poly( F, G, true );
     544                if ((F%l!=0) || (G % l !=0))
     545                  l = gcd_poly( F, G, true );
    544546                On( SW_RATIONAL );
    545547                if ( l.lc().sign() < 0 )
     
    550552            else {
    551553                CanonicalForm d = gcd_poly( f, g, getCharacteristic()==0 );
     554                if ((f%d!=0) || (g % d !=0))
     555                  d = gcd_poly( f, g, getCharacteristic()==0  );
    552556                if ( d.lc().sign() < 0 )
    553557                    return -d;
  • factory/memman.h

    rdaf8e1 r1baf4f  
    11/* emacs edit mode for this file is -*- C -*- */
    2 /* $Id: memman.h,v 1.2 1997-06-19 12:22:21 schmidt Exp $ */
     2/* $Id: memman.h,v 1.3 2004-09-23 16:51:48 Singular Exp $ */
    33
    44#ifndef INCL_MEMMAN_H
     
    123123
    124124#ifdef __cplusplus
     125struct memman_new_delete
     126{
     127  inline void* operator new( size_t size ) { return mmAlloc( size ); }
     128  inline void* operator new []( size_t size ) { return mmAlloc( size ); }
     129  inline void operator delete( void* block ) {  mmFree( block ); }
     130  inline void operator delete []( void* block ) {  mmFree( block ); }
     131};
    125132}
    126133#endif
  • factory/memutil.h

    rdaf8e1 r1baf4f  
    11/* emacs edit mode for this file is -*- C -*- */
    2 /* $Id: memutil.h,v 1.2 1997-06-19 12:22:16 schmidt Exp $ */
     2/* $Id: memutil.h,v 1.3 2004-09-23 16:51:48 Singular Exp $ */
    33
    44#ifndef INCL_MEMUTIL_H
     
    2222
    2323#ifdef __cplusplus
     24struct memman_new_delete
     25{
     26  inline void* operator new( size_t size ) { return getBlock( size ); }
     27  inline void* operator new []( size_t size ) { return getBlock( size ); }
     28  inline void operator delete( void* block ) { freeBlock( block, 0 ); }
     29  inline void operator delete []( void* block ) { freeBlock( block, 0 ); }
     30};
    2431}
    2532#endif
Note: See TracChangeset for help on using the changeset viewer.