More interpolation support
This commit is contained in:
13
c/coreslam.c
13
c/coreslam.c
@@ -62,12 +62,6 @@ static double * double_alloc(int size)
|
||||
return (double *)safe_malloc(size * sizeof(double));
|
||||
}
|
||||
|
||||
static float * float_alloc(int size)
|
||||
{
|
||||
return (float *)safe_malloc(size * sizeof(float));
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
swap(int * a, int * b)
|
||||
{
|
||||
@@ -264,6 +258,13 @@ int *
|
||||
return (int *)safe_malloc(size * sizeof(int));
|
||||
}
|
||||
|
||||
float *
|
||||
float_alloc(
|
||||
int size)
|
||||
{
|
||||
return (float *)safe_malloc(size * sizeof(float));
|
||||
}
|
||||
|
||||
void
|
||||
map_init(
|
||||
map_t * map,
|
||||
|
||||
@@ -86,6 +86,10 @@ int *
|
||||
int_alloc(
|
||||
int size);
|
||||
|
||||
float *
|
||||
float_alloc(
|
||||
int size);
|
||||
|
||||
void
|
||||
map_init(
|
||||
map_t * map,
|
||||
|
||||
Reference in New Issue
Block a user