Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtschump committed Jan 14, 2025
2 parents 371e3ba + 752cbb7 commit 7fa5fa2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
15 changes: 9 additions & 6 deletions CImg.h
Original file line number Diff line number Diff line change
Expand Up @@ -23839,10 +23839,10 @@ namespace cimg_library {
CImg<doubleT>(&mp.mem[pos + 1],siz,1,1,1,true)-=CImg<doubleT>(&mem[pos + 1],siz,1,1,1,true);
break;
case 3 : // Operator*
CImg<doubleT>(&mp.mem[pos + 1],siz,1,1,1,true)*=CImg<doubleT>(&mem[pos + 1],siz,1,1,1,true);
CImg<doubleT>(&mp.mem[pos + 1],siz,1,1,1,true).mul(CImg<doubleT>(&mem[pos + 1],siz,1,1,1,true));
break;
case 4 : // Operator/
CImg<doubleT>(&mp.mem[pos + 1],siz,1,1,1,true)/=CImg<doubleT>(&mem[pos + 1],siz,1,1,1,true);
CImg<doubleT>(&mp.mem[pos + 1],siz,1,1,1,true).div(CImg<doubleT>(&mem[pos + 1],siz,1,1,1,true));
break;
case 5 : // Operator&
CImg<doubleT>(&mp.mem[pos + 1],siz,1,1,1,true)&=CImg<doubleT>(&mem[pos + 1],siz,1,1,1,true);
Expand Down Expand Up @@ -31320,7 +31320,8 @@ namespace cimg_library {
_cimg_math_parser mp(expression,"eval",*this,output,list_images,false);

#if cimg_use_openmp!=0
cimg_pragma_openmp(parallel if (res._height>=512))
const int num_threads = (int)std::min(res.size(),(ulongT)omp_get_max_threads());
cimg_pragma_openmp(parallel if (num_threads>0 && res._height>=512) num_threads(num_threads))
{
_cimg_math_parser
*const _mp = omp_get_thread_num()?new _cimg_math_parser(mp):&mp,
Expand Down Expand Up @@ -33872,7 +33873,7 @@ namespace cimg_library {
CImg<T>& _fill(const char *const expression, const bool repeat_values, const unsigned int mode,
CImgList<T> *const list_images, const char *const calling_function,
const CImg<T> *provides_copy, CImg<doubleT> *const result_end) {
if (is_empty() || !expression || !*expression) return *this;
if (!expression || !*expression) return *this; // Let empty images be evaluated to allow side effects
const unsigned int excmode = cimg::exception_mode();
cimg::exception_mode(0);
CImg<charT> is_error_expr;
Expand Down Expand Up @@ -33958,7 +33959,8 @@ namespace cimg_library {
} else {

#if cimg_use_openmp!=0
cimg_pragma_openmp(parallel)
const int num_threads = (int)std::min(size(),(ulongT)omp_get_max_threads());
cimg_pragma_openmp(parallel if (num_threads>0) num_threads(num_threads))
{
_cimg_math_parser
*const _mp = omp_get_thread_num()?new _cimg_math_parser(mp):&mp,
Expand Down Expand Up @@ -34014,7 +34016,8 @@ namespace cimg_library {
} else {

#if cimg_use_openmp!=0
cimg_pragma_openmp(parallel)
const int num_threads = (int)std::min(size(),(ulongT)omp_get_max_threads());
cimg_pragma_openmp(parallel if (num_threads>0) num_threads(num_threads))
{
_cimg_math_parser
*const _mp = omp_get_thread_num()?new _cimg_math_parser(mp):&mp,
Expand Down
2 changes: 1 addition & 1 deletion html/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="header">
<a href="index.html"><img alt="Logo" src="img/logo_header.jpg" class="center_image" style="margin-top:1em;"/></a>
<h2 style="padding-bottom: 1em">
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.5.0</a></b> (2024/12/31)
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.5.0</a></b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Current pre-release: <b><a href="http://cimg.eu/files/CImg_latest.zip">3.5.1</a></b> (2025/01/14)
</h2>

<hr/>
Expand Down
2 changes: 1 addition & 1 deletion html/header_doxygen.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="header">
<a href="../index.html"><img alt="Logo" src="../img/logo_header.jpg" class="center_image" style="margin-top:1em;"/></a>
<h2 style="padding-bottom: 1em">
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.5.0</a></b> (2024/12/31)
Latest stable version: <b><a href="http://cimg.eu/files/CImg_.zip">3.5.0</a></b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Current pre-release: <b><a href="http://cimg.eu/files/CImg_latest.zip">3.5.1</a></b> (2025/01/14)
</h2>

<hr/>
Expand Down

0 comments on commit 7fa5fa2

Please sign in to comment.