Changeset e8cd08 in git


Ignore:
Timestamp:
Nov 21, 2013, 3:03:33 PM (9 years ago)
Author:
Janko Boehm <boehm@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '48f1dd268d0ff74ef2f7dccbf02545425002ddcc')
Children:
fc34c44ed7973f5f200362cfa8f150bc31c8387b
Parents:
a2f79c054ca40c801a773fd34d33c63c5b21f130
Message:
Fix for Cygwin: cast to pointer from integer of different size
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/modulop.h

    ra2f79c re8cd08  
    125125                       r->ch-(long)b+(long)a : (long)a-(long)b);
    126126}
     127
     128static inline number npNegM(number a, const coeffs r)
     129{
     130  return (number)((long)(r->ch)-(long)(a));
     131}
     132
    127133#else
    128134static inline number npAddM(number a, number b, const coeffs r)
     
    147153   return (number)res;
    148154}
     155
     156
     157static inline number npNegM(number b, const coeffs r)
     158{
     159   long res =  - (long)b;
     160#if SIZEOF_LONG == 8
     161   res += (res >> 63) & r->ch;
     162#else
     163   res += (res >> 31) & r->ch;
     164#endif
     165   return (number)res;
     166}
     167
    149168#endif
    150169
     
    160179
    161180
    162 #define npNegM(A,r)      (number)((long)r->ch-(long)(A))
     181
     182
     183
    163184#define npEqualM(A,B,r)  ((A)==(B))
    164185
Note: See TracChangeset for help on using the changeset viewer.