<commit_before>#ifndef __STD_MATH__
#define __STD_MATH__

#define __HAVE_68881__

#include <math.h>
#include "std/types.h"

#ifdef AMIGA
inline static float log2f(float x) {
  float value;

  asm("flog2%.x %1,%0"
      : "=f" (value)
      : "f" (x));

  return value;
}

inline static double log2(double x) {
  double value;

  asm("flog2%.x %1,%0"
      : "=f" (value)
      : "f" (x));

  return value;
}

inline static float logf(float x) {
  float value;

  asm("flogn%.x %1,%0"
      : "=f" (value)
      : "f" (x));

  return value;
}

inline static float sqrtf(float x) {
  float value;

  asm("fsqrt%.x %1,%0"
      : "=f" (value)
      : "f" (x));

  return value;
}

inline static float truncf(float x) {
  float value;

  asm("fintrz%.x %1,%0"
      : "=f" (value)
      : "f" (x));

  return value;
}

inline static int lroundf(float x) {
  float real;
  int value;

  asm("fintrz%.x %1,%0"
      : "=f" (real)
      : "f" (x + 0.5f));
  asm("fmove%.l %1,%0"
      : "=d" (value)
      : "f" (real));

  return value;
}

inline static float modff(float x, float *ip) {
  float temp;

  asm("fintrz%.x %1,%0"
      : "=f" (temp)
      : "f" (x));

  *ip = temp;

  return x - temp;
}
#endif

float *CalcSineTable(size_t n asm("d0"), size_t frequency asm("d1"),
                     float amplitude asm("fp0"), float shift asm("fp1"));

#endif
<commit_msg>Add missing float variant for fabs function.<commit_after>#ifndef __STD_MATH__
#define __STD_MATH__

#define __HAVE_68881__

#include <math.h>
#include "std/types.h"

#ifdef AMIGA
inline static float fabsf(float x) {
  float value;

  asm("fabs%.x %1,%0"
      : "=f" (value)
      : "f" (x));

  return value;
}

inline static float log2f(float x) {
  float value;

  asm("flog2%.x %1,%0"
      : "=f" (value)
      : "f" (x));

  return value;
}

inline static double log2(double x) {
  double value;

  asm("flog2%.x %1,%0"
      : "=f" (value)
      : "f" (x));

  return value;
}

inline static float logf(float x) {
  float value;

  asm("flogn%.x %1,%0"
      : "=f" (value)
      : "f" (x));

  return value;
}

inline static float sqrtf(float x) {
  float value;

  asm("fsqrt%.x %1,%0"
      : "=f" (value)
      : "f" (x));

  return value;
}

inline static float truncf(float x) {
  float value;

  asm("fintrz%.x %1,%0"
      : "=f" (value)
      : "f" (x));

  return value;
}

inline static int lroundf(float x) {
  float real;
  int value;

  asm("fintrz%.x %1,%0"
      : "=f" (real)
      : "f" (x + 0.5f));
  asm("fmove%.l %1,%0"
      : "=d" (value)
      : "f" (real));

  return value;
}

inline static float modff(float x, float *ip) {
  float temp;

  asm("fintrz%.x %1,%0"
      : "=f" (temp)
      : "f" (x));

  *ip = temp;

  return x - temp;
}
#endif

float *CalcSineTable(size_t n asm("d0"), size_t frequency asm("d1"),
                     float amplitude asm("fp0"), float shift asm("fp1"));

#endif

{'fraction_non_alphanumeric': 0.18903070024146257, 'fraction_numerical': 0.02207657813038979, 'mean_word_length': 2.558282208588957, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4837019', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1204, 'n_words': 313}