libflint/include/lfmath.h
Evan Burkey 59fee5094b
All checks were successful
Test and Deploy / test (push) Successful in 14s
Test and Deploy / docs (push) Successful in 19s
arena allocator
2024-07-16 10:49:08 -07:00

23 lines
398 B
C

#ifndef LIBFLINT_H_MATH
#define LIBFLINT_H_MATH
#include <stddef.h>
#include "lfutility.h"
int max_int(int a, int b);
int min_int(int a, int b);
int clamp_int(int i, int low, int high);
int binstr_to_int(const char *s);
int is_power_of_two(int i);
Point *bresenham(int x0, int y0, int x1, int y1, size_t *sz);
Point *bresenham_p(Point p1, Point p2, size_t *sz);
#endif // LIBFLINT_H_MATH