1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

small optimization

This commit is contained in:
unknown
2004-10-31 12:29:38 +01:00
parent b4d0ae2966
commit bb72d0a06e

View File

@ -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: