uthex.c (316303) | uthex.c (322877) |
---|---|
1/****************************************************************************** 2 * 3 * Module Name: uthex -- Hex/ASCII support functions 4 * 5 *****************************************************************************/ 6 7/****************************************************************************** 8 * --- 169 unchanged lines hidden (view full) --- 178 * 179 ******************************************************************************/ 180 181char 182AcpiUtHexToAsciiChar ( 183 UINT64 Integer, 184 UINT32 Position) 185{ | 1/****************************************************************************** 2 * 3 * Module Name: uthex -- Hex/ASCII support functions 4 * 5 *****************************************************************************/ 6 7/****************************************************************************** 8 * --- 169 unchanged lines hidden (view full) --- 178 * 179 ******************************************************************************/ 180 181char 182AcpiUtHexToAsciiChar ( 183 UINT64 Integer, 184 UINT32 Position) 185{ |
186 UINT64 Index; |
|
186 | 187 |
187 return (AcpiGbl_HexToAscii[(Integer >> Position) & 0xF]); | 188 AcpiUtShortShiftRight (Integer, Position, &Index); 189 return (AcpiGbl_HexToAscii[Index & 0xF]); |
188} 189 190 191/******************************************************************************* 192 * 193 * FUNCTION: AcpiUtAsciiToHexByte 194 * 195 * PARAMETERS: TwoAsciiChars - Pointer to two ASCII characters --- 67 unchanged lines hidden --- | 190} 191 192 193/******************************************************************************* 194 * 195 * FUNCTION: AcpiUtAsciiToHexByte 196 * 197 * PARAMETERS: TwoAsciiChars - Pointer to two ASCII characters --- 67 unchanged lines hidden --- |