Permalink
Browse files

Remove unessential headers from public includes [take 2]. Closes #212 (

…#215)

Signed-off-by: Giulio Moro <giuliomoro@yahoo.it>
  • Loading branch information...
giuliomoro authored and Phillip-Wang committed Nov 15, 2018
1 parent f303d43 commit 1f059a764d0e1bc2481c0055c0e71538470baa83
@@ -67,11 +67,6 @@
extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "NE10_types.h"
#include "NE10_macros.h"
#include "NE10_init.h"
@@ -36,6 +36,7 @@
#ifndef NE10_MACROS_H
#define NE10_MACROS_H
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
@@ -54,7 +55,7 @@ extern "C" {
#define NE10_FREE(p) \
do { \
free(p); \
p = NULL; \
p = 0; \
}while(0)
#define NE10_MIN(a,b) ((a)>(b)?(b):(a))
@@ -36,12 +36,8 @@
#ifndef NE10_TYPES_H
#define NE10_TYPES_H
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <string.h>
#include <assert.h>
#include <stdint.h>
/**
* @TODO Move the definition of NE10_UNROLL_LEVEL to cmake configuration files.
@@ -130,7 +126,7 @@ typedef struct
static inline void createColumnMajorMatrix2x2 (ne10_mat2x2f_t * outMat, ne10_float32_t m11, ne10_float32_t m21, ne10_float32_t m12, ne10_float32_t m22)
{
assert (NULL != outMat);
assert (0 != outMat);
outMat->c1.r1 = m11;
outMat->c1.r2 = m21;
@@ -158,7 +154,7 @@ static inline void createColumnMajorMatrix3x3 (ne10_mat3x3f_t * outMat, ne10_flo
ne10_float32_t m12, ne10_float32_t m22, ne10_float32_t m32,
ne10_float32_t m13, ne10_float32_t m23, ne10_float32_t m33)
{
assert (NULL != outMat);
assert (0 != outMat);
outMat->c1.r1 = m11;
outMat->c1.r2 = m21;
@@ -196,7 +192,7 @@ static inline void createColumnMajorMatrix4x4 (ne10_mat4x4f_t * outMat, ne10_flo
ne10_float32_t m13, ne10_float32_t m23, ne10_float32_t m33, ne10_float32_t m43,
ne10_float32_t m14, ne10_float32_t m24, ne10_float32_t m34, ne10_float32_t m44)
{
assert (NULL != outMat);
assert (0 != outMat);
outMat->c1.r1 = m11;
outMat->c1.r2 = m21;
@@ -47,6 +47,8 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#include "NE10_types.h"
#include "NE10_macros.h"
#include "NE10_fft.h"
#include <math.h>
#include <string.h>
/*
* This function outputs a factor buffer ('facbuf') that decomposes an FFT of input size
@@ -33,6 +33,7 @@
#define NE10_FFT_NEONINTRINSIC_H
#include "NE10_fft.h"
#include <stdio.h>
#include <arm_neon.h>
#define NE10_CPX_ADD_NEON_F32(Z,A,B) do { \
@@ -30,6 +30,7 @@
*/
#include "NE10_types.h"
#include <math.h>
#ifndef NE10_FFT_COMMON_VARIBLES_H
#define NE10_FFT_COMMON_VARIBLES_H
@@ -30,6 +30,7 @@
*/
#include "NE10_types.h"
#include <stdio.h>
#ifndef NE10_FFT_DEBUG_MACRO_H
#define NE10_FFT_DEBUG_MACRO_H
@@ -46,6 +46,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#include "NE10_types.h"
#include "NE10_macros.h"
#include <math.h>
#include "NE10_fft.h"
/*
@@ -47,6 +47,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#include "NE10_types.h"
#include "NE10_macros.h"
#include "NE10_fft.h"
#include <math.h>
static void ne10_mixed_radix_butterfly_int16_c (ne10_fft_cpx_int16_t * Fout,
@@ -47,6 +47,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#include "NE10_types.h"
#include "NE10_macros.h"
#include "NE10_fft.h"
#include <math.h>
static void ne10_mixed_radix_butterfly_int32_c (ne10_fft_cpx_int32_t * Fout,
@@ -29,6 +29,7 @@
* NE10 Library : dsp/NE10_iir_init.c
*/
#include "NE10_types.h"
#include <string.h>
/**
@@ -48,6 +48,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#include "NE10_macros.h"
#include "NE10_fft.h"
#include "NE10_dsp.h"
#include <math.h>
#if (NE10_UNROLL_LEVEL > 0)
@@ -30,6 +30,7 @@
*/
#include "seatest.h"
#include <stdio.h>
void test_fixture_fft_c2c_1d_float32 (void);
void test_fixture_fft_c2c_1d_int32 (void);
@@ -73,6 +73,8 @@
#include "NE10.h"
#include <stdlib.h>
#include <stdio.h>
/* RGBA CHANNEL number is 4 */
#define RGBA_CH 4
@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <math.h>
#include <arm_neon.h>
#include <stdio.h>
extern void ne10_img_boxfilter_row_border (const ne10_uint8_t* src,
ne10_uint8_t* dst,
@@ -73,6 +73,7 @@
*/
#include "NE10.h"
#include <string.h>
/**
* @ingroup groupIMGPROCs
@@ -72,7 +72,7 @@
* NE10 Library : imgproc/NE10_rotate.c
*/
//#include <math.h>
#include <math.h>
#include "NE10.h"
@@ -30,6 +30,7 @@
*/
#include "seatest.h"
#include <stdio.h>
void test_fixture_math (void);
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "NE10_math.h"
#include "seatest.h"
@@ -30,6 +30,7 @@
*/
#include "seatest.h"
#include <stdio.h>
void test_fixture_physics (void);
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "NE10_physics.h"
#include "seatest.h"

0 comments on commit 1f059a7

Please sign in to comment.