Deleted Added
full compact
exfldio.c (298714) exfldio.c (300879)
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
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 /* Create the bitmasks used for bit insertion */
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 }
950
962
951 WidthMask = ACPI_MASK_BITS_ABOVE_64 (AccessBitWidth);
952 Mask = WidthMask &
953 ACPI_MASK_BITS_BELOW (ObjDesc->CommonField.StartFieldBitOffset);
954
955 /* Compute the number of datums (access width data items) */
956
957 DatumCount = ACPI_ROUND_UP_TO (ObjDesc->CommonField.BitLength,
958 AccessBitWidth);
959

--- 89 unchanged lines hidden ---
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 ---