Changeset f82665 in git for gfanlib


Ignore:
Timestamp:
Oct 29, 2018, 1:28:18 PM (5 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
daeaac1ed0f0ea9b041977a1b0f3e7edc96c10e3
Parents:
fadf5bd30a2a40cf580cfb666b0a2dfc5d7b9d42
Message:
update gfanlib to 0.6.2
Location:
gfanlib
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • gfanlib/gfanlib_circuittableint.h

    rfadf5b rf82665  
    4141                        v=a.v;
    4242                        shift=0;
    43                         uint32_t t=v;
     43                        int32_t t=v;
     44//                        uint32_t t=v;
    4445                        assert(t);
    4546                        while(!(t&1)){t>>=        1;shift++;}
     
    111112        }
    112113        std::string toString()const{std::stringstream s;s<<v;return s.str();}
     114        friend std::ostream &operator<<(std::ostream &f, CircuitTableInt32 const &a){f<<(int)a.v;return f;}
    113115        Double extend()const{Double ret;ret.v=v;return ret;}
    114116        CircuitTableInt32 &maddWithOverflowChecking(CircuitTableInt32 const &a, CircuitTableInt32 const&b){Double t=this->extend();t+=extendedMultiplication(a,b);*this=t.castToSingle();return *this;}
  • gfanlib/gfanlib_paralleltraverser.h

    rfadf5b rf82665  
    2727{
    2828public:
    29         bool aborting;                      // Added by Anders
     29        bool aborting;                                         // Added by Anders
    3030        void abort(){aborting=true;}        // Added by Anders
    31         Traverser():aborting(false){}       // Added by Anders
     31        Traverser():aborting(false){}        // Added by Anders
    3232  // Virtual destructor
    3333  virtual ~Traverser( void ) {};
  • gfanlib/gfanlib_q.h

    rfadf5b rf82665  
    1212#include <ostream>
    1313#include <assert.h>
    14 #include <stddef.h>
    1514#include "gmp.h"
    1615
  • gfanlib/gfanlib_z.h

    rfadf5b rf82665  
    1414#define OLD 1
    1515#if OLD
    16 #include <stddef.h>
    1716#include "gmp.h"
    1817
  • gfanlib/gfanlib_zcone.cpp

    rfadf5b rf82665  
    3737        void initializeCddlibIfRequired() // calling this frequently will cause memory leaks because deinitialisation is not possible with old versions of cddlib.
    3838        {
    39           if (dd_statStartTime==0)
    40           {
     39          if (dd_statStartTime==0)
     40          {
    4141                dd_set_global_constants();
    4242          }
  • gfanlib/gfanlib_zfan.cpp

    rfadf5b rf82665  
    282282    if(coneCollection)
    283283    {
    284       if(coneCollection->isEmpty())
    285         return -1;
    286       return coneCollection->getAmbientDimension()-coneCollection->getMaxDimension();
     284            if(coneCollection->isEmpty())
     285                    return -1;
     286            else
     287                    return coneCollection->getAmbientDimension()-coneCollection->getMaxDimension();
    287288    }
    288289    assert(0);
     
    295296    if(coneCollection)
    296297    {
    297       if(coneCollection->isEmpty())
    298         return -1;
    299       return coneCollection->getMaxDimension();
     298            if(coneCollection->isEmpty())
     299                    return -1;
     300            else
     301                    return coneCollection->getMaxDimension();
    300302    }
    301303    assert(0);
     
    307309      return complex->getLinDim();
    308310    if(coneCollection)
    309       return coneCollection->dimensionOfLinealitySpace();
     311    {
     312            if(coneCollection->isEmpty())
     313                    return getAmbientDimension();
     314            else
     315                    return coneCollection->dimensionOfLinealitySpace();
     316    }
    310317    assert(0);
    311318    return 0;
Note: See TracChangeset for help on using the changeset viewer.