POV-Ray : Newsgroups : povray.off-topic : Unexpected : Re: Unexpected Server Time
28 Jul 2024 22:20:10 EDT (-0400)
  Re: Unexpected  
From: Warp
Date: 19 Aug 2013 15:33:57
Message: <52127325@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> If we "disassemble" that back to C++, it's basically equivalent to:

> //-----------------------------------------
> int a(int input)
> {
>     return input == 0 ? 0 : -input;
> }
> //-----------------------------------------

Btw, clang is able to optimize it to an outright "return -input;"

-- 
                                                          - Warp


Post a reply to this message

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