<commit_before>#include <pal.h>

/**
 *
 * Element wise inversion (reciprocal) of elements in 'a'.
 *
 * @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_inv_f32(const float *a, float *c, int n, int p, p_team_t team)
{
    int i;
    float cur;
    for (i = 0; i < n; i++) {
        cur = *(a + i);
        union {
            float f;
            uint32_t x;
        } u = {cur};
	/* First approximation */
        u.x = 0x7EF312AC - u.x;
        /* Refine */
        u.f = u.f * (2 - u.f * cur);
        u.f = u.f * (2 - u.f * cur);
        *(c + i) = u.f;
    }
}<commit_msg>Use spaces instead of tabs<commit_after>#include <pal.h>

/**
 *
 * Element wise inversion (reciprocal) of elements in 'a'.
 *
 * @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_inv_f32(const float *a, float *c, int n, int p, p_team_t team)
{
    int i;
    float cur;
    for (i = 0; i < n; i++) {
        cur = *(a + i);
        union {
            float f;
            uint32_t x;
        } u = {cur};
        /* First approximation */
        u.x = 0x7EF312AC - u.x;
        /* Refine */
        u.f = u.f * (2 - u.f * cur);
        u.f = u.f * (2 - u.f * cur);
        *(c + i) = u.f;
    }
}
{'fraction_non_alphanumeric': 0.15114873035066506, 'fraction_numerical': 0.014510278113663845, 'mean_word_length': 1.610410094637224, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1727864', 'n_tokens_mistral': 636, 'n_tokens_neox': 613, 'n_words': 204}