Es könnte sein, dass der Kompiler Deine Routine weg optimiert, wenn Du das Ergebnis nicht nutzt.
Gruß Tommy