Changeset 35ee46c in git for Singular/iparith.cc


Ignore:
Timestamp:
Jan 18, 2007, 11:31:37 AM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
b533b3485b6a73ce0d27992c22e0a15f371e296c
Parents:
60dfdc97489d07341b6d2a1dc70c68564a3a77fc
Message:
*hannes: 64bit: jjLONG2N


git-svn-id: file:///usr/local/Singular/svn/trunk@9736 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r60dfdc r35ee46c  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.436 2007-01-16 18:20:04 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.437 2007-01-18 10:31:37 Singular Exp $ */
    55
    66/*
     
    38273827}
    38283828#if SIZEOF_LONG == 8
    3829 static number jjLONG2N(long d);
     3829static number jjLONG2N(long d)
     3830{
     3831  int i=(int)d;
     3832  if ((long)i == d)
     3833  {
     3834    return nlInit(i);
     3835  }
     3836  else
     3837  {
     3838    number z=(number)omAllocBin(rnumber_bin);
     3839    #if defined(LDEBUG)
     3840    z->debug=123456;
     3841    #endif
     3842    mpz_init_set_si(&z->z,d);
     3843    return z;
     3844  }
     3845}
    38303846#else
    38313847#define jjLONG2N(D) nlInit((int)D)
Note: See TracChangeset for help on using the changeset viewer.