1 | /* ---------------- */ |
---|
2 | /* --- nrset1.h --- */ |
---|
3 | /* ---------------- */ |
---|
4 | |
---|
5 | /* |
---|
6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
7 | * Univ Paris Sud XI, CNRS |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef _NRSET1_H_ |
---|
11 | #define _NRSET1_H_ |
---|
12 | |
---|
13 | |
---|
14 | /* |
---|
15 | * ------------ |
---|
16 | * --- Zero --- |
---|
17 | * --- set_vector --- |
---|
18 | * --- set_vector_param --- |
---|
19 | * --- set_vector_j --- |
---|
20 | * ------------ |
---|
21 | */ |
---|
22 | |
---|
23 | #define zero_set_type_vector(t) \ |
---|
24 | void short_name(t,zero_,vector)(t * v, int32_t nl, int32_t nh); \ |
---|
25 | void short_name(t,set_,vector)(t * v, int32_t nl, int32_t nh, t x); \ |
---|
26 | void short_name(t,set_,vector_param)(t * v, int32_t nl, int32_t nh, t x, t xstep); \ |
---|
27 | void short_name(t,set_,vector_j)(t * v, int32_t nl, int32_t nh); |
---|
28 | |
---|
29 | zero_set_type_vector(int8_t); |
---|
30 | zero_set_type_vector(uint8_t); |
---|
31 | zero_set_type_vector(int16_t); |
---|
32 | zero_set_type_vector(uint16_t); |
---|
33 | zero_set_type_vector(int32_t); |
---|
34 | zero_set_type_vector(uint32_t); |
---|
35 | zero_set_type_vector(int64_t); |
---|
36 | zero_set_type_vector(uint64_t); |
---|
37 | zero_set_type_vector(float); |
---|
38 | zero_set_type_vector(double); |
---|
39 | zero_set_type_vector(rgb8); |
---|
40 | zero_set_type_vector(rgbx8); |
---|
41 | |
---|
42 | |
---|
43 | /* |
---|
44 | * ---------------------- |
---|
45 | * --- set_vector_str --- |
---|
46 | * ---------------------- |
---|
47 | */ |
---|
48 | |
---|
49 | #define set_type_vector_str(t) \ |
---|
50 | void short_name(t,set_,vector_str)(t * v, int32_t nl, int32_t nh, char * str); |
---|
51 | |
---|
52 | set_type_vector_str(int8_t); |
---|
53 | set_type_vector_str(uint8_t); |
---|
54 | set_type_vector_str(int16_t); |
---|
55 | set_type_vector_str(uint16_t); |
---|
56 | set_type_vector_str(int32_t); |
---|
57 | set_type_vector_str(uint32_t); |
---|
58 | set_type_vector_str(int64_t); |
---|
59 | set_type_vector_str(uint64_t); |
---|
60 | |
---|
61 | |
---|
62 | #endif /* __NRSET1_H__ */ |
---|
63 | |
---|