if (unlikely(isinf(r)) && !isinf(a) && !isinf(b))
float_overflow_error();
- PG_RETURN_FLOAT4(Abs(r));
+ PG_RETURN_FLOAT4(fabsf(r));
}
union_d = inner_int_union(datum_r, datum_alpha);
rt__int_size(union_d, &size_beta);
pfree(union_d);
- costvector[i - 1].cost = fabs((size_alpha - size_l) - (size_beta - size_r));
+ costvector[i - 1].cost = fabsf((size_alpha - size_l) - (size_beta - size_r));
}
qsort((void *) costvector, maxoff, sizeof(SPLITCOST), comparecost);
#include "postgres.h"
#include <float.h>
+#include <math.h>
#include "access/gist.h"
#include "access/stratnum.h"
if (a == (SEG *) NULL || a->upper <= a->lower)
*size = 0.0;
else
- *size = (float) Abs(a->upper - a->lower);
+ *size = fabsf(a->upper - a->lower);
}
Datum
{
SEG *seg = PG_GETARG_SEG_P(0);
- PG_RETURN_FLOAT4((float) Abs(seg->upper - seg->lower));
+ PG_RETURN_FLOAT4(fabsf(seg->upper - seg->lower));
}
{
float4 arg1 = PG_GETARG_FLOAT4(0);
- PG_RETURN_FLOAT4((float4) fabs(arg1));
+ PG_RETURN_FLOAT4(fabsf(arg1));
}
/*