PandA-2024.02
test-specialized.c
Go to the documentation of this file.
1 typedef unsigned int size_t;
2 
3 #include "aggregate.h"
4 
5 int less (const void * a, const void * b);
6 
7 void *bsearch(const void *key, const void *base, size_t /* nmemb */ high,
8  size_t size, int (*compar)(const void *, const void *));
9 
10 int test(float * key, float *base, size_t nmemb)
11 {
12  void * res = bsearch(key, base, (sizeof(float) * nmemb) / sizeof(struct aggregate), sizeof(struct aggregate), 0);
13  return res ? (res - (void *)base)/sizeof(struct aggregate) : -1;
14 }
char base
This version is stamped on May 10, 2016.
Definition: nussinov.c:24
void * bsearch(const void *key, const void *base, size_t high, size_t size, int(*compar)(const void *, const void *))
int key[32]
Definition: aes.h:67
int less(const void *a, const void *b)
Definition: less.c:4
int test(float *key, float *base, size_t nmemb)
unsigned int size_t
int compar(const void *v_lhs, const void *v_rhs)
Definition: generate.c:16

Generated on Mon Feb 12 2024 13:02:49 for PandA-2024.02 by doxygen 1.8.13