Commit 09d7dc0e authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[style] remove extra characters in macros

Fixes #16.
parent 9e827915
Pipeline #6746 passed with stage
in 4 minutes and 2 seconds
......@@ -56,7 +56,7 @@ struct aml_dma_linux_par {
struct aml_dma name = { \
&aml_dma_linux_par_ops, \
(struct aml_dma_data *)&__ ## name ## _inner_data, \
};
}
#define AML_DMA_LINUX_PAR_ALLOCSIZE \
(sizeof(struct aml_dma_linux_par) + \
......
......@@ -46,7 +46,7 @@ struct aml_dma_linux_seq {
struct aml_dma name = { \
&aml_dma_linux_seq_ops, \
(struct aml_dma_data *)&__ ## name ## _inner_data, \
};
}
#define AML_DMA_LINUX_SEQ_ALLOCSIZE \
(sizeof(struct aml_dma_linux_seq) + \
......
......@@ -53,7 +53,7 @@ struct aml_scratch_par {
struct aml_scratch name = { \
&aml_scratch_par_ops, \
(struct aml_scratch_data *)&__ ## name ## _inner_data, \
};
}
#define AML_SCRATCH_PAR_ALLOCSIZE \
(sizeof(struct aml_scratch_par) + \
......
......@@ -54,7 +54,7 @@ struct aml_scratch_seq {
struct aml_scratch name = { \
&aml_scratch_seq_ops, \
(struct aml_scratch_data *)&__ ## name ## _inner_data, \
};
}
#define AML_SCRATCH_SEQ_ALLOCSIZE \
(sizeof(struct aml_scratch_seq) + \
......
......@@ -32,14 +32,14 @@ struct aml_tiling_iterator_1d_data {
struct aml_tiling name = { \
&aml_tiling_1d_ops, \
(struct aml_tiling_data *)&__ ## name ## _inner_data, \
};
}
#define AML_TILING_ITERATOR_1D_DECL(name) \
struct aml_tiling_iterator_1d_data __ ##name## _inner_data; \
struct aml_tiling_iterator name = { \
&aml_tiling_iterator_1d_ops, \
(struct aml_tiling_iterator_data *)&__ ## name ## _inner_data, \
};
}
#define AML_TILING_1D_ALLOCSIZE (sizeof(struct aml_tiling_1d_data) + \
sizeof(struct aml_tiling))
......
......@@ -36,21 +36,21 @@ struct aml_tiling_iterator_2d_data {
struct aml_tiling name = { \
&aml_tiling_2d_rowmajor_ops, \
(struct aml_tiling_data *)&__ ## name ## _inner_data, \
};
}
#define AML_TILING_2D_COLMAJOR_DECL(name) \
struct aml_tiling_2d_data __ ##name## _inner_data; \
struct aml_tiling name = { \
&aml_tiling_2d_colmajor_ops, \
(struct aml_tiling_data *)&__ ## name ## _inner_data, \
};
}
#define AML_TILING_ITERATOR_2D_DECL(name) \
struct aml_tiling_iterator_2d_data __ ##name## _inner_data; \
struct aml_tiling_iterator name = { \
&aml_tiling_iterator_2d_ops, \
(struct aml_tiling_iterator_data *)&__ ## name ## _inner_data, \
};
}
#define AML_TILING_2D_ALLOCSIZE (sizeof(struct aml_tiling_2d_data) + \
sizeof(struct aml_tiling))
......
......@@ -15,6 +15,9 @@ struct aml_bitmap {
unsigned long mask[AML_BITMAP_SIZE];
};
/* Not needed, here for consistency */
#define AML_BITMAP_DECL(name) struct aml_bitmap name
#define AML_BITMAP_ALLOCSIZE (sizeof(struct aml_bitmap))
/**
* On heap allocation of new empty bitmap.
**/
......
......@@ -22,8 +22,8 @@ struct aml_vector {
};
/* not needed, here for consistency */
#define AML_VECTOR_DECL(name) struct vector ##name;
#define AML_VECTOR_ALLOCSIZE (sizeof(struct vector))
#define AML_VECTOR_DECL(name) struct aml_vector name
#define AML_VECTOR_ALLOCSIZE (sizeof(struct aml_vector))
/*
* Provides the total number of elements in the vector, including currently
......
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