Skip to content

Commit

Permalink
Add vfmadd.d and enable search plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Dec 11, 2023
1 parent 8e01988 commit 8078f0d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions docs/lsx_float/vfmadd.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,27 @@ Compute packed single precision floating point FMA(Fused Multiply-Add): multiply
for (int i = 0;i < 4;i++) {
dst.fp32[i] = a.fp32[i] * b.fp32[i] + c.fp32[i];
}
```

## __m128d __lsx_vfmadd_d (__m128d a, __m128d b, __m128d c)

### Synopsis

```c++
__m128d __lsx_vfmadd_d (__m128d a, __m128d b, __m128d c)
#include <lsxintrin.h>
Instruction: vfmadd.d vr, vr, vr
CPU Flags: LSX
```
### Description
Compute packed double 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 < 2;i++) {
dst.fp64[i] = a.fp64[i] * b.fp64[i] + c.fp64[i];
}
```
4 changes: 3 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ site_url: https://jia.je/unofficial-loongarch-intrinsics-guide
site_description: Unofficial LoongArch Intrinsics Guide
theme:
name: readthedocs
copyright: Copyright &copy; 2023 Jiajie Chen
copyright: Copyright &copy; 2023 Jiajie Chen
plugins:
- search

0 comments on commit 8078f0d

Please sign in to comment.