tools/source/misc/fix16.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 18a5df49938132ac6605b3fdd1f023b85f7ac31b
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Thu Feb 29 14:57:21 2024 +0600
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Thu Feb 29 12:50:12 2024 +0100

    Restore a comment
    
    Mistakenly removed in commit c2dca161c0ed455a962d23f8e2fcb64143c5e674
    (Use <bit> instead of platform-specific intrinsics, 2024-02-29)
    
    Change-Id: I6091a767aebcbb2543656cee2c27330fb6f9d16b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164141
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/tools/source/misc/fix16.cxx b/tools/source/misc/fix16.cxx
index 58c40704d931..5818d5c1e55f 100644
--- a/tools/source/misc/fix16.cxx
+++ b/tools/source/misc/fix16.cxx
@@ -76,6 +76,10 @@ fix16_t fix16_mul(fix16_t inArg0, fix16_t inArg1)
     return result;
 }
 
+/* 32-bit implementation of fix16_div. Fastest version for e.g. ARM Cortex M3.
+ * Performs 32-bit divisions repeatedly to reduce the remainder. For this to
+ * be efficient, the processor has to have 32-bit hardware division.
+ */
 fix16_t fix16_div(fix16_t a, fix16_t b)
 {
     // This uses a hardware 32/32 bit division multiple times, until we have

Reply via email to