Changeset fc11f45 in git


Ignore:
Timestamp:
May 2, 2006, 2:21:07 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
Children:
de73940e6ece1d89e3c387c97621c053abb007b2
Parents:
8fe650a84b0ab31d578930ed415d47f61208c1ad
Message:
*hannes: OM_NDEBUG setting (NTLconvert.cc int_int.h int_poly.h)


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

Legend:

Unmodified
Added
Removed
  • factory/NTLconvert.cc

    r8fe650 rfc11f45  
    1 /* $Id: NTLconvert.cc,v 1.16 2006-05-02 11:35:15 Singular Exp $ */
     1/* $Id: NTLconvert.cc,v 1.17 2006-05-02 12:21:07 Singular Exp $ */
    22#include <config.h>
     3
     4#ifdef HAVE_SINGULAR
     5#ifndef OM_NDEBUG
     6#define OM_NDEBUG
     7#endif
     8#endif
    39
    410#include "cf_gmp.h"
  • factory/int_int.h

    r8fe650 rfc11f45  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: int_int.h,v 1.11 2003-10-15 17:19:41 Singular Exp $ */
     2/* $Id: int_int.h,v 1.12 2006-05-02 12:21:07 Singular Exp $ */
    33
    44#ifndef INCL_INT_INT_H
     
    1717#include "gmpext.h"
    1818
     19#ifdef HAVE_SINGULAR
     20#ifndef OM_NDEBUG
     21#define OM_NDEBUG
     22#endif
     23#endif
    1924
    2025#ifdef HAVE_OMALLOC
     
    5560    InternalInteger( const InternalCF& )
    5661    {
    57         ASSERT( 0, "ups there is something wrong in your code" );
     62        ASSERT( 0, "ups there is something wrong in your code" );
    5863    }
    5964    InternalInteger( const int i );
     
    113118
    114119    int ilog2();
    115    
     120
    116121    friend class InternalRational;
    117122#ifdef SINGULAR
     
    145150
    146151    if ( mpz_is_imm( &thempi ) ) {
    147         InternalCF * result = int2imm( mpz_get_si( &thempi ) );
    148         delete this;
    149         return result;
    150     } else
    151         return this;
     152        InternalCF * result = int2imm( mpz_get_si( &thempi ) );
     153        delete this;
     154        return result;
     155    } else
     156        return this;
    152157}
    153158
     
    158163
    159164    if ( mpz_is_imm( &thempi ) ) {
    160         InternalCF * result = int2imm( mpz_get_ui( &thempi ) );
    161         delete this;
    162         return result;
    163     } else
    164         return this;
     165        InternalCF * result = int2imm( mpz_get_ui( &thempi ) );
     166        delete this;
     167        return result;
     168    } else
     169        return this;
    165170}
    166171//}}}
     
    185190{
    186191    if ( mpz_is_imm( &aMpi ) ) {
    187         InternalCF * result = int2imm( mpz_get_si( &aMpi ) );
    188         mpz_clear( &aMpi );
    189         return result;
    190     } else
    191         return new InternalInteger( aMpi );
     192        InternalCF * result = int2imm( mpz_get_si( &aMpi ) );
     193        mpz_clear( &aMpi );
     194        return result;
     195    } else
     196        return new InternalInteger( aMpi );
    192197}
    193198
     
    196201{
    197202    if ( mpz_is_imm( &aMpi ) ) {
    198         InternalCF * result = int2imm( mpz_get_ui( &aMpi ) );
    199         mpz_clear( &aMpi );
    200         return result;
    201     } else
    202         return new InternalInteger( aMpi );
     203        InternalCF * result = int2imm( mpz_get_ui( &aMpi ) );
     204        mpz_clear( &aMpi );
     205        return result;
     206    } else
     207        return new InternalInteger( aMpi );
    203208}
    204209//}}}
  • factory/int_poly.h

    r8fe650 rfc11f45  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: int_poly.h,v 1.7 2000-09-04 13:31:31 obachman Exp $ */
     2/* $Id: int_poly.h,v 1.8 2006-05-02 12:21:07 Singular Exp $ */
    33
    44#ifndef INCL_INT_POLY_H
     
    1515#include "variable.h"
    1616#include "canonicalform.h"
     17
     18#ifdef HAVE_SINGULAR
     19#ifndef OM_NDEBUG
     20#define OM_NDEBUG
     21#endif
     22#endif
    1723
    1824#ifdef HAVE_OMALLOC
Note: See TracChangeset for help on using the changeset viewer.