freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] * src/psaux/cffdecode.c (cff_op_sqrt):


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/psaux/cffdecode.c (cff_op_sqrt): Improve initial guess.
Date: Mon, 11 Sep 2023 21:02:14 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • 18eb9355
    by Alexei Podtelezhnikov at 2023-09-11T17:00:49-04:00
    * src/psaux/cffdecode.c (cff_op_sqrt): Improve initial guess.
    

1 changed file:

Changes:

  • src/psaux/cffdecode.c
    ... ... @@ -17,6 +17,7 @@
    17 17
     
    
    18 18
     
    
    19 19
     #include <freetype/freetype.h>
    
    20
    +#include <freetype/internal/ftcalc.h>
    
    20 21
     #include <freetype/internal/ftdebug.h>
    
    21 22
     #include <freetype/internal/ftserv.h>
    
    22 23
     #include <freetype/internal/services/svcfftl.h>
    
    ... ... @@ -1755,7 +1756,7 @@
    1755 1756
                 args[0] = 46341;
    
    1756 1757
               else if ( args[0] > 0 )
    
    1757 1758
               {
    
    1758
    -            FT_Fixed  root = args[0];
    
    1759
    +            FT_Fixed  root = 1 << ( ( 17 + FT_MSB( args[0] ) ) >> 1 );
    
    1759 1760
                 FT_Fixed  new_root;
    
    1760 1761
     
    
    1761 1762
     
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]