Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtschump committed Feb 12, 2024
1 parent 61ea3f9 commit 7284005
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions CImg.h
Original file line number Diff line number Diff line change
Expand Up @@ -23137,16 +23137,14 @@ namespace cimg_library {
}
}

if (!std::strncmp(ss,"max(",4) || !std::strncmp(ss,"min(",4) ||
!std::strncmp(ss,"maxabs(",7) || !std::strncmp(ss,"minabs(",7) ||
!std::strncmp(ss,"med(",4) || !std::strncmp(ss,"kth(",4) ||
!std::strncmp(ss,"sum(",4) || !std::strncmp(ss,"avg(",4) ||
!std::strncmp(ss,"std(",4) || !std::strncmp(ss,"var(",4) ||
!std::strncmp(ss,"prod(",5) || !std::strncmp(ss,"gcd(",4) ||
!std::strncmp(ss,"lcm(",4) ||
!std::strncmp(ss,"argmin(",7) || !std::strncmp(ss,"argmax(",7) ||
!std::strncmp(ss,"argminabs(",10) || !std::strncmp(ss,"argmaxabs(",10) ||
!std::strncmp(ss,"argkth(",7)) { // Multi-argument functions
if (!std::strncmp(ss,"argkth(",7) || !std::strncmp(ss,"avg(",4) ||
!std::strncmp(ss,"argmax(",7) || !std::strncmp(ss,"argmin(",7) ||
!std::strncmp(ss,"argmaxabs(",10) || !std::strncmp(ss,"argminabs(",10) ||
!std::strncmp(ss,"gcd(",4) || !std::strncmp(ss,"kth(",4) || !std::strncmp(ss,"lcm(",4) ||
!std::strncmp(ss,"max(",4) || !std::strncmp(ss,"maxabs(",7) || !std::strncmp(ss,"med(",4) ||
!std::strncmp(ss,"min(",4) || !std::strncmp(ss,"minabs(",7) || !std::strncmp(ss,"prod(",5) ||
!std::strncmp(ss,"std(",4) || !std::strncmp(ss,"sum(",4) || !std::strncmp(ss,"var(",4)
) { // Multi-argument functions
_cimg_mp_op(*ss=='a'?(ss[1]=='v'?"Function 'avg()'":
ss[3]=='k'?"Function 'argkth()'":
ss[4]=='i' && ss[6]=='('?"Function 'argmin()'":
Expand Down

0 comments on commit 7284005

Please sign in to comment.