/source/ne/librelogo/

='git://go.suokunlong.cn/lo/core' title='lo/core Git repository'/>
summaryrefslogtreecommitdiff
path: root/sc/source/core/opencl/op_financial_helpers.hxx
AgeCommit message (Collapse)Author
2022-09-22remove unused or duplicated opencl helper functionsLuboš Luňák
These mostly exist in "old" and _new variants which are more or less the same, sometimes there are minor differences. Keep just the _new ones, everything still seems to work, all tests pass. Change-Id: I903ea3f11bad6c5e1301febe03974469eb414368 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140396 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-09-22fix opencl round(), roundup() and rounddown()Luboš Luňák
These are quite tricky due to rounding errors, the pown() used to "shift" the decimal point left-right increases the rounding error, so this must be compensated for. The round adjustment is based on rtl_math_round(), the up/down variants check for valid 12 places. Change-Id: I940f11f4e913665a5248463cf826ab5e5dcbe797 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140368 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-09-22fix opencl RATE()Luboš Luňák
Simply copy&paste&adjust the core implementation. Change-Id: Iaba774b6a606d5ed323e2423c1d1261358814ba6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140366 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-09-21fix/simplify opencl DDB() and VDB()Luboš Luňák
Change-Id: I7de072defa1f8a1020c0d974bd519e6d2f604381 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140253 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-09-21fix some opencl financial functions (PMT, IPMT, etc.)Luboš Luňák
These are mostly copy&paste from ScInterpreter and adapted. Change-Id: Ib05021556a34b2eb35d0e51673636f50f150732f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140251 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2022-09-13clean up opencl helper functionsLuboš Luňák
It seems a bit wasteful to use std::string for const strings. Change-Id: I31bb38f5cdcd0210f6f91144b3c37abae9301333 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139487 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>