Changeset 8485 in project


Ignore:
Timestamp:
02/14/08 23:56:49 (12 years ago)
Author:
Kon Lovett
Message:

Used std limits CHAR_BIT.

Location:
release/3/srfi-27/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • release/3/srfi-27/trunk/moa-primitives.scm

    r8432 r8485  
    1818#>
    1919/* bitsizeof is C++, sigh */
    20 #define BITS_PER_BYTE 8
    21 #define bitsizeof(t) (BITS_PER_BYTE * sizeof(t))
     20#define bitsizeof(t) (CHAR_BIT * sizeof(t))
    2221
    2322/* Mother **************************************************************
     
    163162#undef m32Double
    164163
    165 #undef BITS_PER_BYTE
    166164#undef bitsizeof
    167165<#
  • release/3/srfi-27/trunk/mwc-primitives.scm

    r8436 r8485  
    2020
    2121/* bitsizeof is C++, sigh */
    22 #define BITS_PER_BYTE 8
    23 #define bitsizeof(t) (BITS_PER_BYTE * sizeof(t))
     22#define bitsizeof(t) (CHAR_BIT * sizeof(t))
    2423
    2524/*
     
    124123#undef A
    125124
    126 #undef BITS_PER_BYTE
    127125#undef bitsizeof
    128126<#
Note: See TracChangeset for help on using the changeset viewer.