Changeset 11928d5 in mainline for generic/include/adt/bitmap.h


Ignore:
Timestamp:
2006-04-28T14:32:44Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a98cdc7
Parents:
040e4e9
Message:

Fix BITS2BYTES macro to return 0 when passed 0 as argument.
Fix ia32 TSS segment granularity to be 0.
Fix ia32 and amd64 initial TSS limit to be 103.
Little textual changes here and there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/adt/bitmap.h

    r040e4e9 r11928d5  
    3333#include <typedefs.h>
    3434
    35 #define BITS2BYTES(bits)        ((((bits)-1)>>3)+1)
     35#define BITS2BYTES(bits)        (bits ? ((((bits)-1)>>3)+1) : 0)
    3636
    3737typedef struct {
Note: See TracChangeset for help on using the changeset viewer.