diff --git a/docs/lsx_float/vfmadd.md b/docs/lsx_float/vfmadd.md index 292c2ddd..3ecb842e 100644 --- a/docs/lsx_float/vfmadd.md +++ b/docs/lsx_float/vfmadd.md @@ -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 +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]; +} ``` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index e63372b5..bf95258d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -3,4 +3,6 @@ site_url: https://jia.je/unofficial-loongarch-intrinsics-guide site_description: Unofficial LoongArch Intrinsics Guide theme: name: readthedocs -copyright: Copyright © 2023 Jiajie Chen \ No newline at end of file +copyright: Copyright © 2023 Jiajie Chen +plugins: + - search \ No newline at end of file