Strange result while calling fegetround() in MEX file
Ältere Kommentare anzeigen
I use MATLAB R2010b under Linux/64 bits. I have written a C MEX file in which I check the current FPU rounding direction using fegetround() (I have another routine that sets the rounding direction to either +Inf or -Inf). However, my MEX function always reports that the rounding is set to nearest-even even when it is not.
I know the fegetround() function is not faulty since I tested it in a standalone C program and everything works fine.
Any clue about what happens here?
Antworten (0)
Kategorien
Mehr zu Write C Functions Callable from MATLAB (MEX Files) finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!