Lines Matching +full:for +full:- +full:compiler
3 ## What is a template useful for ?
5 In CMSIS-DSP, you have functions like:
12 One could try to reuse the same source for both functions using C preprocessor. But we would still …
14 With C++ templates, we can achieve the same result in a better way since the C++ compiler will chec…
18 When the function is used with a `float32_t *`, the compiler would generate code for a function usi…
20 And if the function is used with a `float64_t *`, the compiler would generate code for a function u…
24 …compiler is unable to generate an implementation because the type variable `T` is replaced by a ty…
28 ## Templates for datatypes
32 For instance, we could have a template `Vector<T>` and thus different types `Vector<float32_t>`, `V…
36 For instance, one could have a type
37 `Vector<float32_t,10>` for a vector of `float` and of length `10`. The length being known at build …
41 …for code generation applies. For a template algorithm using any kind of vector, the compiler would…
48 For instance one could use `Vector<float32_t>` or `Vector<float32_t,10>`.
50 …MIC>` where `DYNAMIC` could be a special value (negative for instance) used to tell the compiler t…