summaryrefslogtreecommitdiffstats
path: root/src/common/ufo-math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/ufo-math.h')
-rw-r--r--src/common/ufo-math.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/ufo-math.h b/src/common/ufo-math.h
index 70084ce..8b283e1 100644
--- a/src/common/ufo-math.h
+++ b/src/common/ufo-math.h
@@ -24,6 +24,8 @@
#define UFO_MATH_EPSILON 1e-7
#define UFO_MATH_ARE_ALMOST_EQUAL(a, b) (ABS ((a) - (b)) < UFO_MATH_EPSILON)
+#define UFO_MATH_NUM_CHUNKS(n, k) (((n) - 1) / (k) + 1)
+
typedef struct {
gdouble x, y, z;
@@ -54,5 +56,6 @@ gdouble ufo_array_minimum (gdouble *array,
gdouble ufo_clip_value (gdouble value,
gdouble minimum,
gdouble maximum);
+gsize ufo_math_compute_closest_smaller_power_of_2 (gsize value);
#endif