ChrisOS Research ProjectOperating systems · language systems · graphics · machine emulation
DOCUMENTATION ARCHIVEMAIN BRANCH
ChrisOS/Source reference: LIB/BMP.CC

Source reference: LIB/BMP.CC

Deterministic source record. The complete textual file is reproduced below; this page does not replace architectural interpretation in the authored chapters.

File identity

Field Value
Path LIB/BMP.CC
Lines 18
Bytes 259
SHA-256 b556394ac68c0963a7bef6e119ed1e8bac447ef33dc85cd0741fc3f2dcbc43e2
ChrisOS revision da3df29cb397932c43d32373871fb9380e688ade

Detected syntactic dependencies

Line Include
— No preprocessor include detected.

Detected symbols

Line Symbol
1 bmp_w
8 bmp_h
15 bmp_off

Complete source

The following block is the complete textual file at the recorded revision. No lines are elided, abbreviated or paraphrased.

int bmp_w(int p) {
  int w;
  w = loadb(p + 18);
  w = w + loadb(p + 19) * 256;
  return w;
}

int bmp_h(int p) {
  int h;
  h = loadb(p + 22);
  h = h + loadb(p + 23) * 256;
  return h;
}

int bmp_off(int p) {
  return loadb(p + 10) + loadb(p + 11) * 256;
}

Role of this record

The atlas guarantees file-by-file traceability. Responsibility, invariants, ownership, concurrency, security, performance and subsystem interactions belong in authored chapters and must cite this file when applicable.

Document record ID: source-b556394ac68c0963 Reviewed source: da3df29cb397 Class: generated-source-reference