POV-Ray : Newsgroups : povray.text.scene-files : greatest common divisor : Re: greatest common divisor Server Time
24 Apr 2024 19:32:56 EDT (-0400)
  Re: greatest common divisor  
From: jr
Date: 23 Jan 2022 03:50:00
Message: <web.61ed15fdf2cd35a6ea8869266cde94f1@news.povray.org>
hi,

kurtz le pirate <kur### [at] gmailcom> wrote:
> To make it easier to use, you can also make :
> (do not pay attention to the order of parameters)
>
> #macro m_gcd(a_,b_)
>   #local ta_ = max(a_,b_);
>   #local tb_ = min(a_,b_);
>   #while (tb_)
>   ...

neat.  although the condition is not the same, accepting A = B makes no
(practical) difference, afaict.  thanks.


regards, jr.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.