Deleted Added
sdiff udiff text old ( 298714 ) new ( 300879 )
full compact
1/******************************************************************************
2 *
3 * Module Name: exfldio - Aml Field I/O
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2016, Intel Corp.

--- 932 unchanged lines hidden (view full) ---

941 /* Algo is limited to sizeof(UINT64), so cut the AccessByteWidth */
942 if (ObjDesc->CommonField.AccessByteWidth > sizeof (UINT64))
943 {
944 ObjDesc->CommonField.AccessByteWidth = sizeof (UINT64);
945 }
946
947 AccessBitWidth = ACPI_MUL_8 (ObjDesc->CommonField.AccessByteWidth);
948
949 /*
950 * Create the bitmasks used for bit insertion.
951 * Note: This if/else is used to bypass compiler differences with the
952 * shift operator
953 */
954 if (AccessBitWidth == ACPI_INTEGER_BIT_SIZE)
955 {
956 WidthMask = ACPI_UINT64_MAX;
957 }
958 else
959 {
960 WidthMask = ACPI_MASK_BITS_ABOVE (AccessBitWidth);
961 }
962
963 Mask = WidthMask &
964 ACPI_MASK_BITS_BELOW (ObjDesc->CommonField.StartFieldBitOffset);
965
966 /* Compute the number of datums (access width data items) */
967
968 DatumCount = ACPI_ROUND_UP_TO (ObjDesc->CommonField.BitLength,
969 AccessBitWidth);
970

--- 89 unchanged lines hidden ---