The R Project SVN R

Rev

Rev 68947 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 68947 Rev 77685
Line 29... Line 29...
29
{
29
{
30
#ifdef IEEE_754
30
#ifdef IEEE_754
31
    if (ISNAN(x) || ISNAN(lambda))
31
    if (ISNAN(x) || ISNAN(lambda))
32
	return x + lambda;
32
	return x + lambda;
33
#endif
33
#endif
34
    if(lambda < 0.) ML_ERR_return_NAN;
34
    if(lambda < 0.) ML_WARN_return_NAN;
35
    if (x < 0)		return R_DT_0;
35
    if (x < 0)		return R_DT_0;
36
    if (lambda == 0.)	return R_DT_1;
36
    if (lambda == 0.)	return R_DT_1;
37
    if (!R_FINITE(x))	return R_DT_1;
37
    if (!R_FINITE(x))	return R_DT_1;
38
    x = floor(x + 1e-7);
38
    x = floor(x + 1e-7);
39
 
39