* src/psaux/cffdecode.c (cff_op_sqrt): Improve initial guess.

This commit is contained in:
Alexei Podtelezhnikov 2023-09-11 17:00:49 -04:00
parent 30b0ce7303
commit 18eb93556c

View File

@ -17,6 +17,7 @@
#include <freetype/freetype.h>
#include <freetype/internal/ftcalc.h>
#include <freetype/internal/ftdebug.h>
#include <freetype/internal/ftserv.h>
#include <freetype/internal/services/svcfftl.h>
@ -1755,7 +1756,7 @@
args[0] = 46341;
else if ( args[0] > 0 )
{
FT_Fixed root = args[0];
FT_Fixed root = 1 << ( ( 17 + FT_MSB( args[0] ) ) >> 1 );
FT_Fixed new_root;