/build/sourc...d/rs_galois.c(3)

πŸ“¦
version 1.8.0 Β· 2 versions
, in nixpkgs unstable

πŸ’… /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 file rs_galois.c. it gets referenced by __attribute__(). ✨
  • #define GROUP_SIZE (FIELD_SIZE - 1) β€” definition at line 42 of file rs_galois.c. also referenced by __attribute__(). πŸ’«
  • #define PRIM_POLY 0x1100b β€” definition at line 40 of file rs_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 file rs_galois.c. it references FIELD_SIZE, GROUP_SIZE, ilog_table, ilog_table_begin, init_counter, log_table, and PRIM_POLY. that's the whole squad fr fr. 🫢
  • int rs_galois_div (int x, int y) [static] β€” definition at line 104 of file rs_galois.c. keeps it tight: references ilog_table, and log_table. only the two table besties. πŸ“

⭐ Variable Documentation ⭐

  • int* ilog_table = NULL [static] β€” definition at line 45 of file rs_galois.c. referenced by __attribute__(), and rs_galois_div(). ✨
  • int* ilog_table_begin = NULL [static] β€” definition at line 46 of file rs_galois.c. referenced by __attribute__(). πŸŽ€
  • int init_counter = 0 [static] β€” definition at line 47 of file rs_galois.c. referenced by __attribute__(). 🌸
  • int* log_table = NULL [static] β€” definition at line 44 of file rs_galois.c. referenced by __attribute__(), and rs_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