Changeset 2d5452 in git


Ignore:
Timestamp:
Feb 10, 2003, 7:23:21 PM (21 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
9d363683d7f5e1536ff109e59e2c5c8c1b8c3588
Parents:
95930acb167fc2d0e05cac9ce06382d9a5f95d6e
Message:
*hannes: 64 bit port


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

Legend:

Unmodified
Added
Removed
  • Singular/modulop.h

    r95930a r2d5452  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: modulop.h,v 1.17 2003-01-31 09:09:46 Singular Exp $ */
     6/* $Id: modulop.h,v 1.18 2003-02-10 18:23:21 Singular Exp $ */
    77/*
    88* ABSTRACT: numbers modulo p (<=32003)
     
    161161static inline number nvMultM(number a, number b)
    162162{
     163#if SIZEOF_LONG == 4
     164#define ULONG64 unsigned long long
     165#else
     166#define ULONG64 unsigned long
     167#endif
    163168  return (number)
    164     ((((unsigned long long) a)*((unsigned long long) b)) % ((unsigned long long) npPrimeM));
     169    ((((ULONG64) a)*((ULONG64) b)) % ((ULONG64) npPrimeM));
    165170}
    166171number  nvMult        (number a, number b);
Note: See TracChangeset for help on using the changeset viewer.