< prev index next >

src/java.desktop/share/native/libmlib_image/mlib_c_ImageLookUp_f.c

Print this page

        

@@ -737,11 +737,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][32768];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_u8, mlib_s16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUp_U16_U8(const mlib_u16 *src,
                                mlib_s32       slb,

@@ -757,11 +764,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][0];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_u8, mlib_u16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUp_S32_U8(const mlib_s32 *src,
                                mlib_s32       slb,

@@ -777,11 +791,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][TABLE_SHIFT_S32];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_u8, mlib_s32, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUp_U8_S16(const mlib_u8  *src,
                                mlib_s32       slb,

@@ -1343,11 +1364,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][32768];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_s16, mlib_s16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUp_U16_S16(const mlib_u16 *src,
                                 mlib_s32       slb,

@@ -1363,11 +1391,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][0];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_s16, mlib_u16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUp_S32_S16(const mlib_s32 *src,
                                 mlib_s32       slb,

@@ -1383,11 +1418,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][TABLE_SHIFT_S32];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_s16, mlib_s32, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUp_S16_U16(const mlib_s16 *src,
                                 mlib_s32       slb,

@@ -1403,11 +1445,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][32768];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_u16, mlib_s16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUp_U16_U16(const mlib_u16 *src,
                                 mlib_s32       slb,

@@ -1423,11 +1472,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][0];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_u16, mlib_u16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUp_S32_U16(const mlib_s32 *src,
                                 mlib_s32       slb,

@@ -1443,11 +1499,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][TABLE_SHIFT_S32];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_u16, mlib_s32, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUp_U8_S32(const mlib_u8  *src,
                                mlib_s32       slb,

@@ -1783,11 +1846,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][32768];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_s32, mlib_s16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUp_U16_S32(const mlib_u16 *src,
                                 mlib_s32       slb,

@@ -1803,11 +1873,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][0];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_s32, mlib_u16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUp_S32_S32(const mlib_s32 *src,
                                 mlib_s32       slb,

@@ -1823,11 +1900,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][TABLE_SHIFT_S32];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUP(mlib_s32, mlib_s32, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUpSI_U8_U8(const mlib_u8 *src,
                                 mlib_s32      slb,

@@ -2833,11 +2917,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][TABLE_SHIFT_S32];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUPSI(mlib_u8, mlib_s32, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUpSI_U8_S16(const mlib_u8  *src,
                                  mlib_s32       slb,

@@ -3290,11 +3381,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][32768];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUPSI(mlib_s16, mlib_s16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUpSI_U16_S16(const mlib_u16 *src,
                                   mlib_s32       slb,

@@ -3330,11 +3428,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][TABLE_SHIFT_S32];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUPSI(mlib_s16, mlib_s32, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUpSI_S16_U16(const mlib_s16 *src,
                                   mlib_s32       slb,

@@ -3370,11 +3475,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][0];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUPSI(mlib_u16, mlib_u16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUpSI_S32_U16(const mlib_s32 *src,
                                   mlib_s32       slb,

@@ -3390,11 +3502,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][TABLE_SHIFT_S32];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUPSI(mlib_u16, mlib_s32, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUpSI_U8_S32(const mlib_u8  *src,
                                  mlib_s32       slb,

@@ -3830,11 +3949,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][32768];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUPSI(mlib_s32, mlib_s16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUpSI_U16_S32(const mlib_u16 *src,
                                   mlib_s32       slb,

@@ -3850,11 +3976,18 @@
 
   for (c = 0; c < csize; c++) {
     table_base[c] = &table[c][0];
   }
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+#endif
   MLIB_C_IMAGELOOKUPSI(mlib_s32, mlib_u16, table_base);
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 }
 
 /***************************************************************/
 void mlib_c_ImageLookUpSI_S32_S32(const mlib_s32 *src,
                                   mlib_s32       slb,
< prev index next >