<commit_before>#include "make_system.h"
#include "vector.h"
#include "rotor.h"
#include "memory.h"

// Did I mention that 'make_system' works by magic?

template <typename T>
inline void demarcate (char * & memory, T * & pointer, unsigned N)
{
  pointer = (T *) memory;
  memory += N * sizeof (T);
}

void make_system (unsigned q, unsigned r, const float (& xyz_in) [3] [4], float (* xyz) [4], unsigned (* indices) [6])
{
  unsigned * P, * Q, * R;     // Permutations taking black triangles around nodes.
  unsigned * Px, * Qx, * Rx;  // Take a triangle to its P-, Q- or R-node.
  unsigned * P0, * R0;        // One of the triangles around each P- and R- node.

  // This is too much memory to allocate on the stack in one go under -nostdlib.
  void * const memory = allocate_internal (410 * sizeof (unsigned));
  unsigned * memp = (unsigned *) memory;
  P = memp; memp += 60;
  Q = memp; memp += 60;
  R = memp; memp += 60;<commit_msg>Delete unused demarcate function.<commit_after>#include "make_system.h"
#include "vector.h"
#include "rotor.h"
#include "memory.h"

// Did I mention that 'make_system' works by magic?

void make_system (unsigned q, unsigned r, const float (& xyz_in) [3] [4], float (* xyz) [4], unsigned (* indices) [6])
{
  unsigned * P, * Q, * R;     // Permutations taking black triangles around nodes.
  unsigned * Px, * Qx, * Rx;  // Take a triangle to its P-, Q- or R-node.
  unsigned * P0, * R0;        // One of the triangles around each P- and R- node.

  // This is too much memory to allocate on the stack in one go under -nostdlib.
  void * const memory = allocate_internal (410 * sizeof (unsigned));
  unsigned * memp = (unsigned *) memory;
  P = memp; memp += 60;
  Q = memp; memp += 60;
  R = memp; memp += 60;
{'fraction_non_alphanumeric': 0.14220183486238533, 'fraction_numerical': 0.017201834862385322, 'mean_word_length': 3.1252955082742315, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2599283', 'n_tokens_mistral': 620, 'n_tokens_neox': 588, 'n_words': 235}