Changeset 6fcb1b3 in git


Ignore:
Timestamp:
Feb 23, 2012, 11:00:04 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
Children:
7347dfb614641b54c125074951559ca8b65b5ea3
Parents:
1a9dc5ff3e8396b7eb0f03fb0ee57fdcae4a5c74
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-23 23:00:04+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-24 16:11:23+01:00
Message:
fixing 32bit via 64bit issues

fix: removed typedef for long64 from ring.h as it duplicates the same block in auxiliary.h!

TODO: fixing mylimits.h leads to lots of errors in runtime (ring:bitmask gets -1L!!?)
Location:
libpolys
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libpolys/misc/Makefile.am

    r1a9dc5 r6fcb1b3  
    2222
    2323libmisc_includedir = $(includedir)/singular/misc
    24 libmisc_include_HEADERS = mylimits.h options.h intvec.h int64vec.h auxiliary.h
     24libmisc_include_HEADERS = mylimits.h options.h intvec.h int64vec.h
     25nodist_libmisc_include_HEADERS = auxiliary.h
    2526
    2627nodist_libmisc_la_SOURCES   = auxiliary.h
  • libpolys/misc/mylimits.h

    r1a9dc5 r6fcb1b3  
    2121
    2222
     23// #define ULONG_MAX (~0UL) // ??
    2324#define ULONG_MAX (~0L)
    2425
     26// TODO: fixing the following BUG (!?) leads to wrong ring::bitmask
     27// #if ~0UL != 4294967295UL
    2528#if ~0UL == 4294967295UL
    2629#define LONG_MAX 9223372036854775807L
  • libpolys/polys/monomials/ring.cc

    r1a9dc5 r6fcb1b3  
    1111#include <math.h>
    1212
     13#include "config.h"
     14
    1315#include <omalloc/omalloc.h>
     16
     17#include <misc/auxiliary.h>
     18#include <misc/mylimits.h>
    1419#include <misc/options.h>
    1520#include <misc/int64vec.h>
  • libpolys/polys/monomials/ring.h

    r1a9dc5 r6fcb1b3  
    3737struct sip_smap;
    3838typedef struct sip_smap *         map;
    39 
    40 
    41 #if SIZEOF_LONG == 4
    42 typedef long long int64;
    43 #elif SIZEOF_LONG == 8
    44 typedef long int64;
    45 #else
    46 #error int64 undefined
    47 #endif
    4839
    4940/* the function pointer types */
Note: See TracChangeset for help on using the changeset viewer.