Re: [dev] [st] [PATCH 4/3] tresize: remove unnecessary if

From: FRIGN <dev_AT_frign.de>
Date: Sun, 12 Apr 2015 11:54:59 +0200

On Sun, 12 Apr 2015 11:36:00 +0200
koneu <koneu93_AT_googlemail.com> wrote:

> It is not a nop though, but two copy operations. Even with i=0 the
> function call might be more costly than a simple je.

The assembly is rather irrelevant in this case. Let's write the code
the way it is most understandable and clear.
I'd remove the if, memmove is equivalent to a non-op when the offset
is 0.

Cheers

FRIGN

-- 
FRIGN <dev_AT_frign.de>
Received on Sun Apr 12 2015 - 11:54:59 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 12 2015 - 12:00:37 CEST