![Intel Extensible Firmware Interface Скачать руководство пользователя страница 407](http://html1.mh-extra.com/html/intel/extensible-firmware-interface/extensible-firmware-interface_specification_2073117407.webp)
32/64-bit UNDI Specification
Version 1.02
12/12/00
389
G.3.1.6 PXE_SWAP_UINT64
This macro swaps bytes in a 64-bit word for compilers that support 64-bit words.
#if PXE_UINT64_SUPPORT != 0
# ifdef PXE_INTEL_ORDER
# define PXE_SWAP_UINT64(n)
\
((((PXE_UINT64)(n) & 0x00000000000000FF) << 56) |\
(((PXE_UINT64)(n) & 0x000000000000FF00) << 40) | \
(((PXE_UINT64)(n) & 0x0000000000FF0000) << 24) | \
(((PXE_UINT64)(n) & 0x00000000FF000000) << 8) |
\
(((PXE_UINT64)(n) & 0x000000FF00000000) >> 8) |
\
(((PXE_UINT64)(n) & 0x0000FF0000000000) >> 24) | \
(((PXE_UINT64)(n) & 0x00FF000000000000) >> 40) | \
(((PXE_UINT64)(n) & 0xFF00000000000000) >> 56)
# else
# define PXE_SWAP_UINT64(n)
(n)
# endif
#endif // PXE_UINT64_SUPPORT
This macro swaps bytes in a 64-bit word, in place, for compilers that do not support 64-bit words.
This version of the 64-bit swap macro cannot be used in expressions.
#if PXE_NO_UINT64_SUPPORT != 0
# if PXE_INTEL_ORDER
# define PXE_SWAP_UINT64(n)
\
{
\
PXE_UINT32 tmp = (PXE_UINT64)(n)[1];
\
(PXE_UINT64)(n)[1] = PXE_SWAP_UINT32((PXE_UINT64)(n)[0]);
\
(PXE_UINT64)(n)[0] = PXE_SWAP_UINT32(tmp);
\
}
# else
# define PXE_SWAP_UINT64(n)
(n)
# endif
#endif // PXE_NO_UINT64_SUPPORT
Содержание Extensible Firmware Interface
Страница 1: ...Extensible Firmware Interface Specification Version 1 02 December 12 2000...
Страница 4: ...Extensible Firmware Interface Specification iv 12 12 00 Version 1 02...
Страница 42: ...Extensible Firmware Interface Specification 24 12 01 00 Version 1 02...
Страница 190: ...Extensible Firmware Interface Specification 172 12 12 00 Version 1 02...
Страница 200: ...Extensible Firmware Interface Specification 182 12 12 00 Version 1 02...
Страница 226: ...Extensible Firmware Interface Specification 208 12 12 00 Version 1 02...
Страница 230: ...Extensible Firmware Interface Specification 212 12 12 00 Version 1 02...
Страница 252: ...Extensible Firmware Interface Specification 234 12 12 00 Version 1 02...
Страница 294: ...Extensible Firmware Interface Specification 276 12 12 00 Version 1 02...
Страница 348: ...Extensible Firmware Interface Specification 330 12 01 00 Version 1 01...
Страница 350: ...Extensible Firmware Interface Specification 332 12 12 00 Version 1 02...
Страница 354: ...Extensible Firmware Interface Specification 336 12 12 00 Version 1 02...
Страница 362: ...Extensible Firmware Interface Specification 344 12 12 00 Version 1 02...
Страница 486: ...Extensible Firmware Interface Specification 468 12 12 00 Version 1 02...
Страница 494: ...Extensible Firmware Interface Specification 476 12 12 00 Version 1 02...