/build/sourc...d/rs_galois.c(3)
π
/build/sourc...d/rs_galois.c(3) β¨
okay so bestie, before we go anywhere: this whole page lives inside the liberasurecode manual, section 3, and it's the docs for /build/sourc...d/rs_galois.c. it's a Doxygen-generated page, so it's basically a very thorough receipts list of file positions, not a story. we're gonna read it together, no cap. π«Ά
πΈ NAME πΈ
/build/source/src/builtin/rs_vand/rs_galois.c
that's it. that's the whole name section. iconic minimalism honestly. π
π¦ SYNOPSIS π¦
the includes, verbatim, don't touch:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Macros π
#define PRIM_POLY 0x1100b
#define FIELD_SIZE (1 << 16)
#define GROUP_SIZE (FIELD_SIZE - 1)
Functions π§
__attribute__ ((visibility('internal')))
static int rs_galois_div (int x, int y)
Variables π
static int * log_table = NULL
static int * ilog_table = NULL
static int * ilog_table_begin = NULL
static int init_counter = 0
π₯ Macro Definition Documentation π₯
#define FIELD_SIZE (1 << 16)β definition lives at line 41 of filers_galois.c. it gets referenced by__attribute__(). β¨#define GROUP_SIZE (FIELD_SIZE - 1)β definition at line 42 of filers_galois.c. also referenced by__attribute__(). π«#define PRIM_POLY 0x1100bβ definition at line 40 of filers_galois.c. yep, referenced by__attribute__()too. the whole__attribute__()thing is lowkey the main character here, ngl. π
π Function Documentation π
__attribute__ ((visibility('internal')) )β definition at line 49 of filers_galois.c. it referencesFIELD_SIZE,GROUP_SIZE,ilog_table,ilog_table_begin,init_counter,log_table, andPRIM_POLY. that's the whole squad fr fr. π«Άint rs_galois_div (int x, int y) [static]β definition at line 104 of filers_galois.c. keeps it tight: referencesilog_table, andlog_table. only the two table besties. π
β Variable Documentation β
int* ilog_table = NULL [static]β definition at line 45 of filers_galois.c. referenced by__attribute__(), andrs_galois_div(). β¨int* ilog_table_begin = NULL [static]β definition at line 46 of filers_galois.c. referenced by__attribute__(). πint init_counter = 0 [static]β definition at line 47 of filers_galois.c. referenced by__attribute__(). πΈint* log_table = NULL [static]β definition at line 44 of filers_galois.c. referenced by__attribute__(), andrs_galois_div(). π¦
heads up bestie: this page is literally just pointers (pun intended) to line numbers and cross-references. it does not describe what any of these actually do at runtime, so i'm not gonna make anything up. we don't do speculation here. π
π Author π
Generated automatically by Doxygen for liberasurecode from the source code. not a human, not a vibe, just a machine doing its little index thing. π
aaaand that's the whole page, bestie!! π mwah, go read some actual source code, you got this π
sign-off: Version 1.8.0, dated Tue Jan 1 1980 00:00 β that's the version stamp and date from the footer, and this whole thing came from /build/sourc...d/rs_galois.c(3). periodt. π
β¨
π¦ where this page comes from
- nixpkgs unstable: liberasurecode 1.8.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms