2021-12-10 14:33:37 -08:00
|
|
|
#ifndef LIBFLINT_H_MATH
|
|
|
|
#define LIBFLINT_H_MATH
|
|
|
|
|
2024-07-16 10:49:08 -07:00
|
|
|
#include <stddef.h>
|
|
|
|
|
2023-11-29 13:40:41 -08:00
|
|
|
#include "lfutility.h"
|
2022-03-30 14:35:23 -07:00
|
|
|
|
2021-12-10 14:33:37 -08:00
|
|
|
int max_int(int a, int b);
|
2022-03-28 10:52:16 -07:00
|
|
|
|
2021-12-10 14:33:37 -08:00
|
|
|
int min_int(int a, int b);
|
2022-03-28 10:52:16 -07:00
|
|
|
|
2022-03-21 14:32:31 -07:00
|
|
|
int clamp_int(int i, int low, int high);
|
2022-03-28 10:52:16 -07:00
|
|
|
|
2021-12-10 14:33:37 -08:00
|
|
|
int binstr_to_int(const char *s);
|
|
|
|
|
2024-07-16 10:49:08 -07:00
|
|
|
int is_power_of_two(int i);
|
|
|
|
|
2022-03-30 14:35:23 -07:00
|
|
|
Point *bresenham(int x0, int y0, int x1, int y1, size_t *sz);
|
|
|
|
|
|
|
|
Point *bresenham_p(Point p1, Point p2, size_t *sz);
|
|
|
|
|
2021-12-10 14:33:37 -08:00
|
|
|
#endif // LIBFLINT_H_MATH
|