mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-03 18:10:56 +01:00
Note added in function-math-fma.md
Added benefit to consequence
This commit is contained in:
parent
4fd0d8508e
commit
a90532b9fe
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ When generating `native` code with `--!native` or `@native`, the operation shoul
|
|||
|
||||
Overall, it is better to allow the developer to manually decide which operations they choose to optimize, as the compiler will not understand the context, importance, or order of the operations and the rationale behind their arrangements.
|
||||
|
||||
As a consequence, `math.fma` must manually be invoked, and existing code would not benefit from any performance improvements.
|
||||
As a consequence, `math.fma` must manually be invoked, and existing code would not benefit from any performance improvements, however, the integrity and continuity of the code will remain.
|
||||
|
||||
- The use of `math.fma` may result in confusing code if it is not cleanly implemented by the developer.
|
||||
- Additional function added to the `math` library, which may only see use from more experienced developers that understand the micro-optimization of mathematical operations.
|
||||
|
|
Loading…
Add table
Reference in a new issue