1. Is the following way correct for using FPUfastRTS library in a project. Though I refered FASTRTS_SW_LIB_UG.pdf and some examples I didn't get clarity hence kindly help on it.
- Adding the required header file in project
#include "fastrts.h"
#include "fpu32/C28x_FPU_FastRTS.h"
- Adding the above header file path in properties---->Include Options
- Adding rts2800_fpu32_fast_supplement.lib in properties--->flile search path
2. In the following TI Example file (div_f32), I coudn't understand what is the use of "float32u_t" since it doesn't seem to be a datatype.
void FastRTS_runTest(void) { // Locals uint16_t i, j; float32u_t in1, in2, out, gold, err; //<<VC160921: cant check ulp error as this only applies to // fixed point representation of the same set of numbers // //float32u_t errulp; // // VC160921>> for(i = 0U, j = 0U; i < TEST_SIZE; i++, j = j + 2U) { out.f32 = FLT_MAX; in1.f32 = test_input[j]; in2.f32 = test_input[j + 1U]; // Run the calculation function out.f32 = in1.f32/in2.f32; test_output[i] = out.f32; gold.f32 = test_golden[i]; err.f32 = fabsf(out.f32 - gold.f32); if(err.f32 < tolerance) { pass++; } else { fail++; } test_error[i] = err.f32; } }
3. During execution of the following line, will compiler transfer control to div_f32.asm file and execute function FS$$DIV present in the assembly file automatically? am I correct? If it is wrong give me a correct guidance please.
out.f32 = in1.f32/in2.f32;
4. What is the differences between various library files mentioned below and their usage
rts2800_fpu32_fast_supplement.lib
rts2800_fpu32_fast_supplement_coff.lib
rts2800_fpu32_fast_supplement_eabi.lib
rts2800_fpu64_fast_supplement.lib