Skip to content
GitLab
Explore
Sign in
Register
FreeType
FreeType
Compare revisions
ce5f9fd6309f9b40689dfa741115a02614b96fae to 54e2749db6022745bb3d6f7e63b73a2f2f70684a
Commits on Source (2)
[dense] Add -msse4.1 to compile with CMake
· 8729e33f
Anurag Thakur
authored
Jun 05, 2023
8729e33f
[dense] Add compilation flags for meson
· 54e2749d
Anurag Thakur
authored
Jun 05, 2023
54e2749d
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
54e2749d
...
...
@@ -247,6 +247,8 @@ if (BUILD_FRAMEWORK)
endif
()
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-msse4.1"
)
# Find dependencies
include
(
FindPkgConfig
)
...
...
builds/meson/parse_modules_cfg.py
View file @
54e2749d
...
...
@@ -87,6 +87,7 @@ def generate_ftmodule(lists):
names
=
{
"
raster
"
:
(
"
ft_raster1
"
,),
"
smooth
"
:
(
"
ft_smooth
"
,),
"
dense
"
:
(
"
ft_dense
"
,),
"
svg
"
:
(
"
ft_svg
"
,),
"
sdf
"
:
(
"
ft_sdf
"
,
"
ft_bitmap_sdf
"
),
}.
get
(
module
)
...
...
meson.build
View file @
54e2749d
...
...
@@ -395,15 +395,16 @@ if use_unix_ftsystem_c
endif
ft2_lib
=
library
(
'freetype'
,
sources
:
ft2_sources
+
[
ftmodule_h
],
c_args
:
ft2_defines
,
c_args
:
ft2_defines
+
'-msse4.1'
,
gnu_symbol_visibility
:
'hidden'
,
include_directories
:
ft2_includes
,
dependencies
:
ft2_deps
,
install
:
true
,
version
:
ft2_so_version
,
link_args
:
common_ldflags
,
link_args
:
common_ldflags
+
'-lm'
,
)
...
...
src/dense/ftdense.c
View file @
54e2749d
...
...
@@ -154,7 +154,7 @@ dense_render_line( dense_worker* worker, FT_Pos tox, FT_Pos toy )
{
int
linestart
=
y
*
worker
->
m_w
;
FT26D6
dy
=
min
(
(
y
+
1
)
<<
6
,
to_y
)
-
max
(
y
<<
6
,
from_y
);
FT26D6
dy
=
FT_MIN
(
(
y
+
1
)
<<
6
,
to_y
)
-
FT_MAX
(
y
<<
6
,
from_y
);
m_a
[
linestart
+
x0i
]
+=
dir
*
dy
*
(
64
-
x
+
x0floor
);
m_a
[
linestart
+
(
x0i
+
1
)]
+=
dir
*
dy
*
(
x
-
x0floor
);
...
...