diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-13 05:30:01 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-13 05:30:01 +0100 |
| commit | f6cb7f3e7382a19a6d6d9990c243ffb8a666182d (patch) | |
| tree | dbf43f976f66a39fd87ffa38d59194b425efaa68 /src/zseti.c | |
| parent | Make zabs, zneg and zswap inline (diff) | |
| download | libzahl-f6cb7f3e7382a19a6d6d9990c243ffb8a666182d.tar.gz libzahl-f6cb7f3e7382a19a6d6d9990c243ffb8a666182d.tar.bz2 libzahl-f6cb7f3e7382a19a6d6d9990c243ffb8a666182d.tar.xz | |
Optimisations
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/zseti.c')
| -rw-r--r-- | src/zseti.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zseti.c b/src/zseti.c index 81a7a13..d3514fb 100644 --- a/src/zseti.c +++ b/src/zseti.c @@ -5,7 +5,7 @@ void zseti(z_t a, long long int b) { - if (b >= 0) { + if (EXPECT(b >= 0, 0)) { zsetu(a, (unsigned long long int)b); } else { zsetu(a, (unsigned long long int)-b); |
