summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-12-06 15:08:26 +0100
committerunknown <serg@serg.mylan>2004-12-06 15:08:26 +0100
commita4a69f73126d247a519a50f5ba21357ce13839fe (patch)
tree9ef86be68820517e9e42844aeb1ffd17dcb76096 /include
parent399e2ae37d7569df6c4524e67b9c025600fd8739 (diff)
downloadmariadb-git-a4a69f73126d247a519a50f5ba21357ce13839fe.tar.gz
int decimal_is_zero(decimal *from);
Diffstat (limited to 'include')
-rw-r--r--include/decimal.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/decimal.h b/include/decimal.h
index 5b5b8c0b460..fddae1f54a6 100644
--- a/include/decimal.h
+++ b/include/decimal.h
@@ -51,13 +51,7 @@ int decimal_mul(decimal *from1, decimal *from2, decimal *to);
int decimal_div(decimal *from1, decimal *from2, decimal *to, int scale_incr);
int decimal_mod(decimal *from1, decimal *from2, decimal *to);
int decimal_round(decimal *from, decimal *to, int new_scale, decimal_round_mode mode);
-
-/*
- the following works only on special "zero" decimal, not on any
- decimal that happen to evaluate to zero
-*/
-
-#define decimal_is_zero(dec) ((dec)->intg1==1 && (dec)->frac1==0 && (dec)->buf[0]==0)
+int decimal_is_zero(decimal *from);
/* set a decimal to zero */