#include <pal.h>

/**
 *
 * Converts integer values in 'a' to floating point values.
 *
 * @param a     Pointer to input vector
 *
 * @param c     Pointer to output vector
 *
 * @param n     Size of 'a' and 'c' vector.
 *
 * @param p     Number of processor to use (task parallelism)
 *
 * @param team  Team to work with 
 *
 * @return      None
 *
 */
#include <math.h>
void p_itof(int *a, float *c, int n, int p, p_team_t team) {
	int i;
	for(i = 0; i < n; i++) {
		*(c + i) = (float)(*(a + i));
	}
}

#include <pal.h>

/**
 *
 * Converts integer values in 'a' to floating point values.
 *
 * @param a     Pointer to input vector
 *
 * @param c     Pointer to output vector
 *
 * @param n     Size of 'a' and 'c' vector.
 *
 * @param p     Number of processor to use (task parallelism)
 *
 * @param team  Team to work with 
 *
 * @return      None
 *
 */
#include <math.h>
void p_itof(int *a, float *c, int n, int p, p_team_t team) {
	for(int i = 0; i < n; i++) {
		*(c + i) = (float)(*(a + i));
	}
}

Initialize variable in the declaration
Initialize variable in the declaration

Google style guide http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Local_Variables
"Place a function's variables in the narrowest scope possible, and initialize variables in the declaration."

Signed-off-by: Tom Anderson <bd28f8d49b61b0565f68fcded57d716070757017@email.com>