generated from gnu-octave/pkg-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mpfr_fits_ushort_p.m
21 lines (19 loc) · 1.02 KB
/
mpfr_fits_ushort_p.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function ret = mpfr_fits_ushort_p (op, rnd)
% ret = mpfr_fits_ushort_p (op, rnd)
%
% Return non-zero if OP would fit in the respective C data type,
% respectively ‘unsigned long’, ‘long’, ‘unsigned int’, ‘int’,
% ‘unsigned short’, ‘short’, ‘uintmax_t’, ‘intmax_t’, when rounded to
% an integer in the direction RND. For instance, with the
% ‘MPFR_RNDU’ rounding mode on −0.5, the result will be non-zero for
% all these functions. For ‘MPFR_RNDF’, those functions return
% non-zero when it is guaranteed that the corresponding conversion
% function (for example ‘mpfr_get_ui’ for ‘mpfr_fits_ulong_p’), when
% called with faithful rounding, will always return a number that is
% representable in the corresponding type. As a consequence, for
% ‘MPFR_RNDF’, ‘mpfr_fits_ulong_p’ will return non-zero for a
% non-negative number less than or equal to ‘ULONG_MAX’.
%
ret = mex_apa_interface (1027, op, rnd);
end
% This function was automatically generated by "generate_m_files".