https://github.com/nihui/unofficial-mips-loongson-intrinsics-guide
https://github.com/nihui/unofficial-mips-loongson-intrinsics-guide
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nihui/unofficial-mips-loongson-intrinsics-guide
- Owner: nihui
- License: mit
- Created: 2026-04-28T05:19:10.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2026-04-28T06:03:38.000Z (3 months ago)
- Last Synced: 2026-04-28T07:29:24.881Z (3 months ago)
- Language: C
- Size: 3.29 MB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unofficial MIPS Loongson Intrinsics Guide
This is an unofficial guide for the MIPS-era Loongson SIMD intrinsic headers:
- `loongson-sxintrin.h`
- `loongson-asxintrin.h`
- `msa.h`
- `msa2.h`
- `msa-cryptointrin.h`
- `loongson-mmiintrin.h`
- `loongson-csr.h`
The project mirrors the layout and writing style of the Unofficial LoongArch Intrinsics Guide: intrinsics are grouped by operation category, each entry records a C/C++ synopsis, include file, CPU feature macro, instruction mnemonic or builtin mapping, an inferred lane-level operation, and the original wrapper body from the source header.
The operation text is generated from the Loongson/MIPS mnemonic, GCC MSA builtin naming, local toolchain source, and related LSX/LASX/SIMD conventions. It is intended as practical guidance for developers, not as a vendor-verified ISA specification.
## Project Information
- Project repository:
- Documentation site:
- Inspired by and modeled after:
- This guide was generated with assistance from OpenAI GPT-5 Codex.
## Build
Generate the Markdown pages from the headers:
```sh
python3 tools/generate_docs.py
```
Build the static HTML site:
```sh
python3 -m mkdocs build
```
Check that all public intrinsics parsed from the headers are present in `docs/`:
```sh
python3 check.py
```
Serve locally:
```sh
python3 -m mkdocs serve
```
The source headers under `include/` retain their original GCC copyright notices.