Commit 5c940d7a by Richard Stallman

(sarray_at_put): Add #ifdef case for

!defined(PRECOMPUTE_SELECTORS) and OBJC_SPARSE2.

From-SVN: r4526
parent d0b85cd1
......@@ -60,11 +60,16 @@ sarray_at_put(struct sarray* array, sidx index, void* element)
#endif
boffset = xx.off.boffset;
eoffset = xx.off.eoffset;
#else
#else /* not PRECOMPUTE_SELECTORS */
#ifdef OBJC_SPARSE3
ioffset = index/INDEX_CAPACITY;
boffset = (index/BUCKET_SIZE)%INDEX_SIZE;
eoffset = index%BUCKET_SIZE;
#else
boffset = index/BUCKET_SIZE;
eoffset = index%BUCKET_SIZE;
#endif
#endif /* not PRECOMPUTE_SELECTORS */
assert(soffset_decode(index) < array->capacity); /* Range check */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment