POV-Ray : Newsgroups : povray.text.scene-files : greatest common divisor : Re: greatest common divisor Server Time
13 Aug 2022 14:23:49 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-2021 Persistence of Vision Raytracer Pty. Ltd.