Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.6 KiB

  1. /* *************************************************************************
  2. ** INTEL Corporation Proprietary Information
  3. **
  4. ** This listing is supplied under the terms of a license
  5. ** agreement with INTEL Corporation and may not be copied
  6. ** nor disclosed except in accordance with the terms of
  7. ** that agreement.
  8. **
  9. ** Copyright (c) 1995 Intel Corporation.
  10. ** All Rights Reserved.
  11. **
  12. ** *************************************************************************
  13. */
  14. ;// $Author: KMILLS $
  15. ;// $Date: 22 Dec 1995 13:54:10 $
  16. ;// $Archive: S:\h26x\src\dec\dxgetbit.cpv $
  17. ;// $Header: S:\h26x\src\dec\dxgetbit.cpv 1.2 22 Dec 1995 13:54:10 KMILLS $
  18. ;// $Log: S:\h26x\src\dec\dxgetbit.cpv $
  19. //
  20. // Rev 1.2 22 Dec 1995 13:54:10 KMILLS
  21. //
  22. // added new copyright notice
  23. //
  24. // Rev 1.1 01 Aug 1995 12:28:10 DBRUCKS
  25. // change to read most sig bit first and to not read too many bytes
  26. //
  27. // Rev 1.0 31 Jul 1995 13:00:16 DBRUCKS
  28. // Initial revision.
  29. //
  30. // Rev 1.0 28 Jul 1995 09:46:26 CZHU
  31. // Initial revision.
  32. //////////////////////////////////////////////////////////////////////////////
  33. #include "precomp.h"
  34. const U32 GetBitsMask[33] = {
  35. 0x00000000, 0x00000001, 0x00000003, 0x00000007,
  36. 0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f,
  37. 0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff,
  38. 0x00000fff, 0x00001fff, 0x00003fff, 0x00007fff,
  39. 0x0000ffff, 0x0001ffff, 0x0003ffff, 0x0007ffff,
  40. 0x000fffff, 0x001fffff, 0x003fffff, 0x007fffff,
  41. 0x00ffffff, 0x01ffffff, 0x03ffffff, 0x07ffffff,
  42. 0x0fffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff,
  43. 0xffffffff
  44. };