Merge branch 'main' into dev
This commit is contained in:
@@ -1630,12 +1630,15 @@ if(UNIX OR MINGW)
|
|||||||
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
|
||||||
endif()
|
endif()
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgscripts/libjpeg.pc
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgscripts/libjpeg.pc
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/pkgscripts/libturbojpeg.pc
|
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||||
if(WITH_12BIT)
|
if(WITH_12BIT)
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgscripts/libjpeg12.pc
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgscripts/libjpeg12.pc
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||||
endif()
|
endif()
|
||||||
|
if(WITH_TURBOJPEG)
|
||||||
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgscripts/libturbojpeg.pc
|
||||||
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
||||||
|
endif()
|
||||||
install(FILES
|
install(FILES
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/pkgscripts/${CMAKE_PROJECT_NAME}Config.cmake
|
${CMAKE_CURRENT_BINARY_DIR}/pkgscripts/${CMAKE_PROJECT_NAME}Config.cmake
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/pkgscripts/${CMAKE_PROJECT_NAME}ConfigVersion.cmake
|
${CMAKE_CURRENT_BINARY_DIR}/pkgscripts/${CMAKE_PROJECT_NAME}ConfigVersion.cmake
|
||||||
|
|||||||
@@ -173,7 +173,9 @@ if(WITH_12BIT)
|
|||||||
configure_file(release/libjpeg12.pc.in pkgscripts/libjpeg12.pc @ONLY)
|
configure_file(release/libjpeg12.pc.in pkgscripts/libjpeg12.pc @ONLY)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
configure_file(release/libturbojpeg.pc.in pkgscripts/libturbojpeg.pc @ONLY)
|
if(WITH_TURBOJPEG)
|
||||||
|
configure_file(release/libturbojpeg.pc.in pkgscripts/libturbojpeg.pc @ONLY)
|
||||||
|
endif()
|
||||||
|
|
||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
write_basic_package_version_file(
|
write_basic_package_version_file(
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ set -e
|
|||||||
FUZZER_SUFFIX=
|
FUZZER_SUFFIX=
|
||||||
if [ $# -ge 1 ]; then
|
if [ $# -ge 1 ]; then
|
||||||
FUZZER_SUFFIX="$1"
|
FUZZER_SUFFIX="$1"
|
||||||
|
FUZZER_SUFFIX="`echo $1 | sed 's/\./_/g'`"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_STATIC=1 -DENABLE_SHARED=0 \
|
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_STATIC=1 -DENABLE_SHARED=0 \
|
||||||
|
|||||||
13
jmemmgr.c
13
jmemmgr.c
@@ -68,10 +68,13 @@ round_up_pow2(size_t a, size_t b)
|
|||||||
* There isn't any really portable way to determine the worst-case alignment
|
* There isn't any really portable way to determine the worst-case alignment
|
||||||
* requirement. This module assumes that the alignment requirement is
|
* requirement. This module assumes that the alignment requirement is
|
||||||
* multiples of ALIGN_SIZE.
|
* multiples of ALIGN_SIZE.
|
||||||
* By default, we define ALIGN_SIZE as sizeof(double). This is necessary on
|
* By default, we define ALIGN_SIZE as the maximum of sizeof(double) and
|
||||||
* some workstations (where doubles really do need 8-byte alignment) and will
|
* sizeof(void *). This is necessary on some workstations (where doubles
|
||||||
* work fine on nearly everything. If your machine has lesser alignment needs,
|
* really do need 8-byte alignment) and will work fine on nearly everything.
|
||||||
* you can save a few bytes by making ALIGN_SIZE smaller.
|
* We use the maximum of sizeof(double) and sizeof(void *) since sizeof(double)
|
||||||
|
* may be insufficient, for example, on CHERI-enabled platforms with 16-byte
|
||||||
|
* pointers and a 16-byte alignment requirement. If your machine has lesser
|
||||||
|
* alignment needs, you can save a few bytes by making ALIGN_SIZE smaller.
|
||||||
* The only place I know of where this will NOT work is certain Macintosh
|
* The only place I know of where this will NOT work is certain Macintosh
|
||||||
* 680x0 compilers that define double as a 10-byte IEEE extended float.
|
* 680x0 compilers that define double as a 10-byte IEEE extended float.
|
||||||
* Doing 10-byte alignment is counterproductive because longwords won't be
|
* Doing 10-byte alignment is counterproductive because longwords won't be
|
||||||
@@ -81,7 +84,7 @@ round_up_pow2(size_t a, size_t b)
|
|||||||
|
|
||||||
#ifndef ALIGN_SIZE /* so can override from jconfig.h */
|
#ifndef ALIGN_SIZE /* so can override from jconfig.h */
|
||||||
#ifndef WITH_SIMD
|
#ifndef WITH_SIMD
|
||||||
#define ALIGN_SIZE sizeof(double)
|
#define ALIGN_SIZE MAX(sizeof(void *), sizeof(double))
|
||||||
#else
|
#else
|
||||||
#define ALIGN_SIZE 32 /* Most of the SIMD instructions we support require
|
#define ALIGN_SIZE 32 /* Most of the SIMD instructions we support require
|
||||||
16-byte (128-bit) alignment, but AVX2 requires
|
16-byte (128-bit) alignment, but AVX2 requires
|
||||||
|
|||||||
Reference in New Issue
Block a user