]> gcc.gnu.org Git - gcc.git/commitdiff
(sarray_get): Add #ifdef case for
authorRichard Stallman <rms@gnu.org>
Fri, 21 May 1993 15:38:47 +0000 (15:38 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 21 May 1993 15:38:47 +0000 (15:38 +0000)
!defined(PRECOMPUTE_SELECTORS) and OBJC_SPARSE2.

From-SVN: r4525

gcc/objc/sarray.h

index d43c6ee2bb4f2ed91b9b9e398270a5fd7e756a70..05d28cea8b0c737d895a590989706f156cb8f189 100644 (file)
@@ -213,10 +213,14 @@ static inline void* sarray_get(struct sarray* array, sidx index)
   return array->buckets[x.off.boffset]->elems[x.off.eoffset];
 #endif /* OBJC_SPARSE2 */
 #else /* not PRECOMPUTE_SELECTORS */
+#ifdef OBJC_SPARSE3
   return array->
     indices[index/INDEX_CAPACITY]->
       buckets[(index/BUCKET_SIZE)%INDEX_SIZE]->
        elems[index%BUCKET_SIZE];
+#else /* OBJC_SPARSE2 */
+  return array->buckets[index/BUCKET_SIZE]->elems[index%BUCKET_SIZE];
+#endif /* not OBJC_SPARSE3 */
 #endif /* not PRECOMPUTE_SELECTORS */
 }
 
This page took 0.05853 seconds and 5 git commands to generate.