diff options
author | Theo Anderson <telans@posteo.de> | 2021-02-10 10:55:29 +1300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-02-12 15:10:14 +0000 |
commit | db5965eea124499d3dbc7cc220bca5413f43a27a (patch) | |
tree | bf632a97d1a59c1369fc284fe4b27fc952e345e9 /media-gfx/libimagequant/files | |
parent | mail-client/mutt-wizard: respect EPREFIX (diff) | |
download | gentoo-db5965eea124499d3dbc7cc220bca5413f43a27a.tar.gz gentoo-db5965eea124499d3dbc7cc220bca5413f43a27a.tar.bz2 gentoo-db5965eea124499d3dbc7cc220bca5413f43a27a.zip |
media-gfx/libimagequant: bump to 2.14.0
Closes: https://bugs.gentoo.org/703142
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans@posteo.de>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx/libimagequant/files')
-rw-r--r-- | media-gfx/libimagequant/files/libimagequant-2.14.0-fix-openmp-pragma.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/media-gfx/libimagequant/files/libimagequant-2.14.0-fix-openmp-pragma.patch b/media-gfx/libimagequant/files/libimagequant-2.14.0-fix-openmp-pragma.patch new file mode 100644 index 000000000000..7e2d58619618 --- /dev/null +++ b/media-gfx/libimagequant/files/libimagequant-2.14.0-fix-openmp-pragma.patch @@ -0,0 +1,25 @@ +From 44525d34b738f733a81037286ece603ca0fdcf10 Mon Sep 17 00:00:00 2001 +From: Kornel <kornel@geekhood.net> +Date: Wed, 27 Jan 2021 17:36:33 +0000 +Subject: [PATCH] Update OMP pragma + +--- + libimagequant.c | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/libimagequant.c b/libimagequant.c +index 4f0b48f..828f768 100644 +--- a/libimagequant.c ++++ b/libimagequant.c +@@ -1279,10 +1279,7 @@ LIQ_NONNULL static float remap_to_palette(liq_image *const input_image, unsigned + + #if __GNUC__ >= 9 || __clang__ + #pragma omp parallel for if (rows*cols > 3000) \ +- schedule(static) default(none) shared(acolormap,average_color,cols,input_image,map,n,output_pixels,rows,transparent_index) reduction(+:remapping_error) +-#else +- #pragma omp parallel for if (rows*cols > 3000) \ +- schedule(static) default(none) shared(acolormap) shared(average_color) reduction(+:remapping_error) ++ schedule(static) default(none) shared(background,acolormap,average_color,cols,input_image,map,n,output_pixels,rows,transparent_index) reduction(+:remapping_error) + #endif + for(int row = 0; row < rows; ++row) { + const f_pixel *const row_pixels = liq_image_get_row_f(input_image, row); |