@@ -14,10 +14,10 @@ This function defines the vector which we want to use in equation.
...
@@ -14,10 +14,10 @@ This function defines the vector which we want to use in equation.
`size` is the name of the variable holding the size of the vector.
`size` is the name of the variable holding the size of the vector.
This function expands into an empty string.
This function expands into an empty string.
-`disable_complex`
-`disable_complex`
If the datatype of vectors is either `complex\_float` or `complex\_double`, generated code will by default use complex arithmetic instructions. This macro disables complex arithmetics instruction, and generates code with normal floating point arithmetics.
If the datatype of vectors is either `complex_float` or `complex_double`, generated code will by default use complex arithmetic instructions. This macro disables complex arithmetics instruction, and generates code with normal floating point arithmetics.
this function expands into an empty string.
this function expands into an empty string.
-`sveasmfor(equation)`
-`sveasmfor(assign)`
`equation` is the equation we want to vectorize. It can be of the following format `output = input1 <+|-|\*|/> input2 [<+|-> input3]`, where `input1`, `input2` or `input3` are the `name` arguments to `svedef()`. If not they will be treated like scalars. This function expand to the actual C code, where vectorization is done via inline assembly.
`assign` is the equation we want to vectorize. It can be of the following format `output = input1 <+|-|\*|/> input2 [<+|-> input3]`, where `input1`, `input2` or `input3` are the `name` arguments to `svedef()`. If not they will be treated like scalars. This function expands to the C code, where vectorization is done via inline assembly.
-`sveintrfor(equation)`
-`sveintrfor(equation)`
Same as previous, but the code is generated with intrinsic functions.
Same as previous, but the code is generated with intrinsic functions.
...
@@ -30,8 +30,8 @@ Lets take an example of zaxpy routine: **y = a * x + y**
...
@@ -30,8 +30,8 @@ Lets take an example of zaxpy routine: **y = a * x + y**
Create a file named zaxpy with the following content:
Create a file named zaxpy with the following content: