Math387::Sqrt Function

double Sqrt(const double X);

Square root.

#NameTypeDescription
1Xconst double

Returns: Returns double precision square root of the given number X.

Remarks:

Math387.Sqrt uses SSE2 SQRTSD on Win32/Win64 (single hardware instruction) via the SVML override path; non-Windows targets fall back to System.Sqrt through the PURE_PASCAL include. Faster than the x87-FPU FSQRT that Delphi's built-in System.Sqrt historically used.

Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler