diff options
author | unknown <serg@serg.mylan> | 2004-10-31 12:29:38 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-10-31 12:29:38 +0100 |
commit | bb72d0a06e72c506138cf9eda51a741f2346be09 (patch) | |
tree | 22a8f3c3711de0ec4195604ded094ac0a6e580b7 /include/decimal.h | |
parent | b4d0ae29660f72ed5d7301a88e6b240729fac7a2 (diff) | |
download | mariadb-git-bb72d0a06e72c506138cf9eda51a741f2346be09.tar.gz |
small optimization
Diffstat (limited to 'include/decimal.h')
-rw-r--r-- | include/decimal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/decimal.h b/include/decimal.h index e1a495f1f2b..5ff0a18f085 100644 --- a/include/decimal.h +++ b/include/decimal.h @@ -76,7 +76,7 @@ int decimal_round(decimal *from, decimal *to, int new_scale, dec_round_mode mode #define decimal_string_size(dec) ((dec)->intg + (dec)->frac + ((dec)->frac > 0) + 1) /* negate a decimal */ -#define decimal_neg(dec) do { (dec)->sign=!(dec)->sign; } while(0) +#define decimal_neg(dec) do { (dec)->sign^=1; } while(0) /* conventions: |