Changeset a28549 in git for omalloc/omInline.h


Ignore:
Timestamp:
Apr 28, 2006, 5:17:26 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
521be7bb9621d5c752e9948ebdafd9fdd8ad38be
Parents:
20722e405aa8f76d1fde4dd5a2a01cbcfb1e09bc
Message:
*hannes: 64bit stuff


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

Legend:

Unmodified
Added
Removed
  • omalloc/omInline.h

    r20722e4 ra28549  
    55 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    66 *  Created: 11/99
    7  *  Version: $Id: omInline.h,v 1.8 2001-04-30 09:02:07 Singular Exp $
     7 *  Version: $Id: omInline.h,v 1.9 2006-04-28 15:17:26 Singular Exp $
    88 *******************************************************************/
    99#if defined(OM_INLINE) || defined(OM_ALLOC_C)
     
    3434  {
    3535    unsigned long shift = omGetPageShiftOfAddr(addr);
    36     return ((om_BinPageIndicies[index - om_MinBinPageIndex] & (((unsigned long) 1) << shift)) != 0);
     36    return ((om_BinPageIndicies[index - om_MinBinPageIndex] & (((unsigned long) 1) << shift)) != 0L);
    3737  }
    3838  return 0;
     
    154154{
    155155  void* r;
    156   size_t i=0;
     156  size_t i=(size_t)0;
    157157
    158158  while (s[i]) i++;
     
    184184{
    185185  void* addr;
    186   if (! size) size = 1;
     186  if (! size) size = (size_t)1;
    187187  __omTypeAllocAligned(void*, addr,size);
    188188  return addr;
     
    192192{
    193193  void* addr;
    194   if (! size) size = 1;
     194  if (! size) size = (size_t)1;
    195195  __omTypeAlloc0Aligned(void*,addr, size);
    196196  return addr;
     
    201201  void* new_addr;
    202202
    203   if (!new_size) new_size = 1;
     203  if (!new_size) new_size = (size_t)1;
    204204  if (addr != NULL)
    205205  {
     
    217217  void* new_addr;
    218218
    219   if (!new_size) new_size = 1;
    220   if (addr != NULL && old_size > 0)
     219  if (!new_size) new_size = (size_t)1;
     220  if (addr != NULL && old_size > ((size_t)0))
    221221  {
    222222    __omTypeRealloc0AlignedSize(addr, old_size, void* , new_addr, new_size);
     
    233233  void* new_addr;
    234234
    235   if (!size) size = 1;
     235  if (!size) size = (size_t)1;
    236236  if (addr != NULL)
    237237  {
     
    249249  void* new_addr;
    250250
    251   if (!size) size = 1;
     251  if (!size) size = (size_t)1;
    252252  if (addr != NULL)
    253253  {
Note: See TracChangeset for help on using the changeset viewer.