Changeset 3d3e22c in rtems


Ignore:
Timestamp:
Apr 13, 2010, 4:39:47 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
f9bf7f1
Parents:
d526708e
Message:

2010-04-13 Ralf Corsépius <ralf.corsepius@…>

  • libmisc/shell/fts.c (fts_pow2): Rebase fts_pow2 on SIZEOF_SIZE_T * CHAR_BIT.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rd526708e r3d3e22c  
     12010-04-13      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libmisc/shell/fts.c (fts_pow2): Rebase fts_pow2 on
     4        SIZEOF_SIZE_T * CHAR_BIT.
     5
    162010-04-13      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • cpukit/libmisc/shell/fts.c

    rd526708e r3d3e22c  
    5050#include "namespace.h"
    5151#endif
     52#include <limits.h>
    5253#include <sys/param.h>
    5354#include <sys/stat.h>
     
    11161117        x |= x>>4;
    11171118        x |= x>>8;
     1119#if (SIZEOF_SIZE_T * CHAR_BIT) > 16
    11181120        x |= x>>16;
    1119 #if LONG_BIT > 32
     1121#endif
     1122#if (SIZEOF_SIZE_T * CHAR_BIT) > 32
    11201123        x |= x>>32;
    11211124#endif
    1122 #if LONG_BIT > 64
     1125#if (SIZEOF_SIZE_T * CHAR_BIT) > 64
    11231126        x |= x>>64;
    11241127#endif
Note: See TracChangeset for help on using the changeset viewer.