The following issues were found
src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.c
1 issues
Line: 314
CWE codes:
908
PACK(
unpacked_result,
PASS_RET_X_FLOAT(packed_result),
underflow_error,
ATANH_ABS_ARG_GT_ONE
OPT_EXCEPTION_INFO);
RETURN_X_FLOAT(packed_result);
Reported by Cppcheck.
src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.c
1 issues
Line: 1097
END_TABLE;
@end_divert
@eval my $tableText; \
my $outText = MphocEval( GetStream( "divertText" ) ); \
my $defineText = Egrep( "#define", $outText, \$tableText ); \
$outText = "$tableText\n\n$defineText"; \
my $headerText = GetHeaderText( STR(BUILD_FILE_NAME), \
"Definitions and constants trigonometric " . \
Reported by Cppcheck.
src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/op_system.h
1 issues
Line: 259
Column: 19
CWE codes:
78
Suggestion:
try using a library call that implements the same functionality if available
#else
# error Operating system must be specified.
#endif
#define IS_UNIX ( \
OP_SYSTEM == hp_ux || \
Reported by FlawFinder.
src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str.h
1 issues
Line: 38
Column: 20
CWE codes:
119
120
Suggestion:
Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length
BID_EXTERN_C BID_UINT32 bid_Tento6;
BID_EXTERN_C BID_UINT32 bid_Tento3;
BID_EXTERN_C const char bid_midi_tbl[1000][3];
BID_EXTERN_C const BID_UINT64 mod10_18_tbl[9][128];
Reported by FlawFinder.
src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.c
1 issues
Line: 40
Column: 7
CWE codes:
119
120
Suggestion:
Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length
BID_UINT32 bid_Tento6 = 1000000;
BID_UINT32 bid_Tento3 = 1000;
const char bid_midi_tbl[1000][3] = {
"000", "001", "002", "003", "004", "005", "006", "007", "008", "009",
"010", "011", "012", "013", "014", "015", "016", "017", "018", "019",
"020", "021", "022", "023", "024", "025", "026", "027", "028", "029",
"030", "031", "032", "033", "034", "035", "036", "037", "038", "039",
"040", "041", "042", "043", "044", "045", "046", "047", "048", "049",
Reported by FlawFinder.
src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.c
1 issues
Line: 77
CWE codes:
758
__bid_f128_cbrt(rq, xq);
BIDECIMAL_CALL1 (binary128_to_bid128, res, rq);
res.w[BID_HIGH_128W] += (((BID_SINT64)k)<<49);
BID_RETURN (res);
}
Reported by Cppcheck.
src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.c
1 issues
Line: 148
CWE codes:
758
//quick_unpack_BID128_em (&exponent_res, &coeff_res, res);
coeff_res.w[0] = res.w[BID_LOW_128W];
coeff_res.w[1] = (res.w[BID_HIGH_128W]) & SMALL_COEFF_MASK128;
exponent_res = (res.w[BID_HIGH_128W]) >> 49;
exponent_res = ((int) exponent_res) & EXPONENT_MASK128;
bid_get_BID128 (&res, 0, exponent_res+exponent_x-DECIMAL_EXPONENT_BIAS_128, coeff_res, &rnd_mode,
pfpsf);
Reported by Cppcheck.
src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.c
1 issues
Line: 143
CWE codes:
758
// negative and falls in an -odd < x < -even interval, then negate.
BIDECIMAL_CALL1_NORND(bid128_round_integral_zero, x_int, x);
e = ((x_int.w[BID_HIGH_128W] >> 49) & ((1ull<<14)-1));
if (e <= 6176)
{ if (e < 6176)
{ BID_UINT128 localshifter = BID128_SHIFTER;
BIDECIMAL_CALL2 (bid128_add, x_int, localshifter, x_int);
}
Reported by Cppcheck.
src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.c
1 issues
Line: 135
CWE codes:
758
// now get P/10^extra_digits: shift C64 right by M[extra_digits]-128
amount = bid_bid_bid_recip_scale32[extra_digits];
CT0 = (CT >>32);
C64 = CT0 >> amount;
#ifndef IEEE_ROUND_NEAREST_TIES_AWAY
#ifndef IEEE_ROUND_NEAREST
if (rnd_mode == 0)
#endif
Reported by Cppcheck.
src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.c
1 issues
Line: 55
CWE codes:
758
digits = 16;
} else {
dx.d = (double)coefficient_x; // exact conversion;
bin_expon_cx = (int)(dx.i >> 52) - 1023;
digits = bid_estimate_decimal_digits[bin_expon_cx];
if (coefficient_x >= bid_power10_table_128[digits].w[0])
digits++;
}
exponent_x = exponent_x - DECIMAL_EXPONENT_BIAS + digits - 1;
Reported by Cppcheck.