剰余関数

インテル数値演算ライブラリは、次の剰余関数をサポートしています。

FMOD

説明: fmod関数は、整数nの値x-n*yを返します。yが非ゼロの場合、その結果は、xと同じ符号を持ち、yの絶対値より小さい値になります。 

呼出しインターフェイス:

long double fmodl(long double x, long double y);
double fmod(double x, double y);
float fmodf(float x, float y);

REMAINDER

説明: remainder関数は、x REM yの値を返します。

呼出しインターフェイス:

long double remainderl(long double x, long double y);
double remainder(double x, double y);
float remainderf(float x, float y);

REMQUO

説明: remquo関数は、x REM yの値を返します。

呼出しインターフェイス:

long double remquol(long double x, long double y, int *quo);
double remquo(double x, double y, int *quo);
float remquof(float x, float y, int *quo);

/* All remquo functions: Itanium®-based systems only*/