Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lint): resolve lint issues in macros #6219

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
int64_t *shape = stdlib_ndarray_shape( x1 ); \
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
const uint8_t *px1 = stdlib_ndarray_data( x1 ); \
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
int64_t d0x1; \
int64_t d1x1; \
Expand Down Expand Up @@ -192,7 +192,7 @@
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
const uint8_t *px1 = stdlib_ndarray_data( x1 ); \
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
uint8_t *px3 = stdlib_ndarray_data( x3 ); \
int64_t d0x1; \
Expand Down Expand Up @@ -385,7 +385,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_10D_LOOP_CAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_10D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = (tout)x; \
} \
STDLIB_NDARRAY_ASSIGN_10D_LOOP_EPILOGUE
Expand All @@ -409,7 +409,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_10D_LOOP_NOCAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_10D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = x; \
} \
STDLIB_NDARRAY_ASSIGN_10D_LOOP_EPILOGUE
Expand All @@ -435,7 +435,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_10D_LOOP_CAST_FCN( tin, tout, cout ) \
STDLIB_NDARRAY_ASSIGN_10D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = cout( x ); \
} \
STDLIB_NDARRAY_ASSIGN_10D_LOOP_EPILOGUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
int64_t bsize; \
uint8_t *pbx1; \
uint8_t *pbx2; \
uint8_t *px1; \
const uint8_t *px1; \
uint8_t *px2; \
int64_t d0x1; \
int64_t d1x1; \
Expand Down Expand Up @@ -322,7 +322,7 @@
uint8_t *pbx1; \
uint8_t *pbx2; \
uint8_t *pbx3; \
uint8_t *px1; \
const uint8_t *px1; \
uint8_t *px2; \
uint8_t *px3; \
int64_t d0x1; \
Expand Down Expand Up @@ -656,7 +656,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_CAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = (tout)x; \
} \
STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_EPILOGUE
Expand All @@ -680,7 +680,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_NOCAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = x; \
} \
STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_EPILOGUE
Expand All @@ -706,7 +706,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_CAST_FCN( tin, tout, cout ) \
STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = cout( x ); \
} \
STDLIB_NDARRAY_ASSIGN_10D_BLOCKED_LOOP_EPILOGUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
int64_t *shape = stdlib_ndarray_shape( x1 ); \
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
const uint8_t *px1 = stdlib_ndarray_data( x1 ); \
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
int64_t d0x1; \
int64_t d0x2; \
Expand Down Expand Up @@ -84,7 +84,7 @@
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
const uint8_t *px1 = stdlib_ndarray_data( x1 ); \
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
uint8_t *px3 = stdlib_ndarray_data( x3 ); \
int64_t d0x1; \
Expand Down Expand Up @@ -133,7 +133,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_1D_LOOP_CAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_1D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = (tout)x; \
} \
STDLIB_NDARRAY_ASSIGN_1D_LOOP_EPILOGUE
Expand All @@ -157,7 +157,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_1D_LOOP_NOCAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_1D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = x; \
} \
STDLIB_NDARRAY_ASSIGN_1D_LOOP_EPILOGUE
Expand All @@ -183,7 +183,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_1D_LOOP_CAST_FCN( tin, tout, cout ) \
STDLIB_NDARRAY_ASSIGN_1D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = cout( x ); \
} \
STDLIB_NDARRAY_ASSIGN_1D_LOOP_EPILOGUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
int64_t *shape = stdlib_ndarray_shape( x1 ); \
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
const uint8_t *px1 = stdlib_ndarray_data( x1 ); \
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
int64_t d0x1; \
int64_t d1x1; \
Expand Down Expand Up @@ -104,7 +104,7 @@
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
const uint8_t *px1 = stdlib_ndarray_data( x1 ); \
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
uint8_t *px3 = stdlib_ndarray_data( x3 ); \
int64_t d0x1; \
Expand Down Expand Up @@ -177,7 +177,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_2D_LOOP_CAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_2D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = (tout)x; \
} \
STDLIB_NDARRAY_ASSIGN_2D_LOOP_EPILOGUE
Expand All @@ -201,7 +201,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_2D_LOOP_NOCAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_2D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = x; \
} \
STDLIB_NDARRAY_ASSIGN_2D_LOOP_EPILOGUE
Expand All @@ -227,7 +227,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_2D_LOOP_CAST_FCN( tin, tout, cout ) \
STDLIB_NDARRAY_ASSIGN_2D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = cout( x ); \
} \
STDLIB_NDARRAY_ASSIGN_2D_LOOP_EPILOGUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
int64_t bsize; \
uint8_t *pbx1; \
uint8_t *pbx2; \
uint8_t *px1; \
const uint8_t *px1; \
uint8_t *px2; \
int64_t d0x1; \
int64_t d1x1; \
Expand Down Expand Up @@ -162,7 +162,7 @@
uint8_t *pbx1; \
uint8_t *pbx2; \
uint8_t *pbx3; \
uint8_t *px1; \
const uint8_t *px1; \
uint8_t *px2; \
uint8_t *px3; \
int64_t d0x1; \
Expand Down Expand Up @@ -288,7 +288,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_CAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = (tout)x; \
} \
STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_EPILOGUE
Expand All @@ -312,7 +312,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_NOCAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = x; \
} \
STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_EPILOGUE
Expand All @@ -338,7 +338,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_CAST_FCN( tin, tout, cout ) \
STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = cout( x ); \
} \
STDLIB_NDARRAY_ASSIGN_2D_BLOCKED_LOOP_EPILOGUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
int64_t *shape = stdlib_ndarray_shape( x1 ); \
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
const uint8_t *px1 = stdlib_ndarray_data( x1 ); \
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
int64_t d0x1; \
int64_t d1x1; \
Expand Down Expand Up @@ -115,7 +115,7 @@
int64_t *sx1 = stdlib_ndarray_strides( x1 ); \
int64_t *sx2 = stdlib_ndarray_strides( x2 ); \
int64_t *sx3 = stdlib_ndarray_strides( x3 ); \
uint8_t *px1 = stdlib_ndarray_data( x1 ); \
const uint8_t *px1 = stdlib_ndarray_data( x1 ); \
uint8_t *px2 = stdlib_ndarray_data( x2 ); \
uint8_t *px3 = stdlib_ndarray_data( x3 ); \
int64_t d0x1; \
Expand Down Expand Up @@ -203,7 +203,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_3D_LOOP_CAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_3D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = (tout)x; \
} \
STDLIB_NDARRAY_ASSIGN_3D_LOOP_EPILOGUE
Expand All @@ -227,7 +227,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_3D_LOOP_NOCAST( tin, tout ) \
STDLIB_NDARRAY_ASSIGN_3D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = x; \
} \
STDLIB_NDARRAY_ASSIGN_3D_LOOP_EPILOGUE
Expand All @@ -253,7 +253,7 @@
*/
#define STDLIB_NDARRAY_ASSIGN_3D_LOOP_CAST_FCN( tin, tout, cout ) \
STDLIB_NDARRAY_ASSIGN_3D_LOOP_PREAMBLE { \
const tin x = *(tin *)px1; \
const tin x = *(const tin *)px1; \
*(tout *)px2 = cout( x ); \
} \
STDLIB_NDARRAY_ASSIGN_3D_LOOP_EPILOGUE
Expand Down
Loading