/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
-Package, Release 3a, by John R. Hauser.
+Package, Release 3d, by John R. Hauser.
-Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
+Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribution and use in source and binary forms, with or without
softfloat_shortShiftRightExtendM(
uint_fast8_t size_words,
const uint32_t *aPtr,
- uint_fast8_t count,
+ uint_fast8_t dist,
uint32_t *zPtr
)
{
- uint_fast8_t negCount;
+ uint_fast8_t uNegDist;
unsigned int indexA, lastIndexA;
uint32_t partWordZ, wordA;
- negCount = -count;
+ uNegDist = -dist;
indexA = indexWordLo( size_words );
lastIndexA = indexWordHi( size_words );
zPtr += indexWordLo( size_words + 1 );
partWordZ = 0;
for (;;) {
wordA = aPtr[indexA];
- *zPtr = wordA<<(negCount & 31) | partWordZ;
+ *zPtr = wordA<<(uNegDist & 31) | partWordZ;
zPtr += wordIncr;
- partWordZ = wordA>>count;
+ partWordZ = wordA>>dist;
if ( indexA == lastIndexA ) break;
indexA += wordIncr;
}