Skip to content

Commit

Permalink
Setup mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Dec 11, 2023
1 parent efe646c commit 8e01988
Show file tree
Hide file tree
Showing 6 changed files with 449 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish
on:
push:
branches:
- master
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- uses: Gr1N/setup-poetry@v8
- run: poetry install
- run: poetry run mkdocs gh-deploy --force
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Unofficial LoongArch Intrinsics Guide
24 changes: 24 additions & 0 deletions docs/lsx_float/vfmadd.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Fused Multiply-Add

## __m128 __lsx_vfmadd_s (__m128 a, __m128 b, __m128 c)

### Synopsis

```c++
__m128 __lsx_vfmadd_s (__m128 a, __m128 b, __m128 c)
#include <lsxintrin.h>
Instruction: vfmadd.s vr, vr, vr
CPU Flags: LSX
```
### Description
Compute packed single precision floating point FMA(Fused Multiply-Add): multiply elements in `a` and `b`, accumulate to elements in `c` and store the result in `dst`.
### Operation
```c++
for (int i = 0;i < 4;i++) {
dst.fp32[i] = a.fp32[i] * b.fp32[i] + c.fp32[i];
}
```
6 changes: 6 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
site_name: Unofficial LoongArch Intrinsics Guide
site_url: https://jia.je/unofficial-loongarch-intrinsics-guide
site_description: Unofficial LoongArch Intrinsics Guide
theme:
name: readthedocs
copyright: Copyright &copy; 2023 Jiajie Chen
Loading

0 comments on commit 8e01988

Please sign in to comment.