-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
449 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Unofficial LoongArch Intrinsics Guide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 © 2023 Jiajie Chen |
Oops, something went wrong.