source: soft/giet_vm/applications/rosenfeld/nrc2/include/nrset1.h @ 826

Last change on this file since 826 was 826, checked in by meunier, 7 years ago
  • Mise à jour NR2 et Rosenfeld
File size: 1.5 KB
Line 
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) \
24void short_name(t,zero_,vector)(t * v, int32_t nl, int32_t nh); \
25void short_name(t,set_,vector)(t * v, int32_t nl, int32_t nh, t x); \
26void short_name(t,set_,vector_param)(t * v, int32_t nl, int32_t nh, t x, t xstep); \
27void short_name(t,set_,vector_j)(t * v, int32_t nl, int32_t nh);
28
29zero_set_type_vector(int8_t);
30zero_set_type_vector(uint8_t);
31zero_set_type_vector(int16_t);
32zero_set_type_vector(uint16_t);
33zero_set_type_vector(int32_t);
34zero_set_type_vector(uint32_t);
35zero_set_type_vector(int64_t);
36zero_set_type_vector(uint64_t);
37zero_set_type_vector(float);
38zero_set_type_vector(double);
39zero_set_type_vector(rgb8);
40zero_set_type_vector(rgbx8);
41
42
43/*
44 * ----------------------
45 * --- set_vector_str ---
46 * ----------------------
47 */
48
49#define set_type_vector_str(t) \
50void short_name(t,set_,vector_str)(t * v, int32_t nl, int32_t nh, char * str);
51
52set_type_vector_str(int8_t);
53set_type_vector_str(uint8_t);
54set_type_vector_str(int16_t);
55set_type_vector_str(uint16_t);
56set_type_vector_str(int32_t);
57set_type_vector_str(uint32_t);
58set_type_vector_str(int64_t);
59set_type_vector_str(uint64_t);
60
61
62#endif /* __NRSET1_H__ */
63
Note: See TracBrowser for help on using the repository browser.