Home
last modified time | relevance | path

Searched refs:ulp (Results 1 – 25 of 91) sorted by relevance

1234

/external/llvm-project/llvm/test/CodeGen/AMDGPU/
Damdgpu-codegenprepare-fdiv.ll6 ; NOOP: %md.25ulp = fdiv float %a, %b, !fpmath !0
8 %md.25ulp = fdiv float %a, %b, !fpmath !0
9 store volatile float %md.25ulp, float addrspace(1)* %out
15 ; CHECK: %md.half.ulp = fdiv float %a, %b
16 ; CHECK: %md.1ulp = fdiv float %a, %b
17 ; CHECK: %md.25ulp = call float @llvm.amdgcn.fdiv.fast(float %a, float %b)
18 ; CHECK: %md.3ulp = call float @llvm.amdgcn.fdiv.fast(float %a, float %b)
20 ; CHECK: %fast.md.25ulp = fmul fast float %a, %[[FAST_RCP]]
22 ; CHECK: afn.md.25ulp = fmul afn float %a, %[[AFN_RCP]]
27 %md.half.ulp = fdiv float %a, %b, !fpmath !1
[all …]
/external/llvm-project/libc/utils/MPFRWrapper/
DMPFRUtils.cpp210 cpp::EnableIfType<cpp::IsFloatingPointType<T>::Value, double> ulp(T input) { in ulp() function in __llvm_libc::testing::mpfr::MPFRNumber
328 OS << " ULP error: " << std::to_string(mpfrResult.ulp(matchValue)) in explainUnaryOperationSingleOutputError()
373 << std::to_string(mpfrResult.ulp(libcResult.f)) << '\n'; in explainUnaryOperationTwoOutputsError()
409 OS << "ULP error: " << std::to_string(mpfrResult.ulp(libcResult.f)) << '\n'; in explainBinaryOperationTwoOutputsError()
446 OS << "ULP error: " << std::to_string(mpfrResult.ulp(libcResult)) << '\n'; in explainBinaryOperationOneOutputError()
463 double ulp = mpfrResult.ulp(libcResult); in compareUnaryOperationSingleOutput() local
465 return (ulp < ulpError) || in compareUnaryOperationSingleOutput()
466 ((ulp == ulpError) && ((ulp != 0.5) || bitsAreEven)); in compareUnaryOperationSingleOutput()
484 double ulp = mpfrResult.ulp(libcResult.f); in compareUnaryOperationTwoOutputs() local
490 return (ulp < ulpError) || in compareUnaryOperationTwoOutputs()
[all …]
/external/arm-optimized-routines/math/
DDir.mk13 $(S)/test/ulp.c \
28 build/bin/ulp \
54 $(B)/test/ulp.o: $(S)/test/ulp.h
80 build/bin/ulp: $(B)/test/ulp.o build/lib/libmathlib.a
98 check-math-ulp: $(math-tools)
101 check-math: check-math-test check-math-rtest check-math-ulp
110 .PHONY: all-math check-math-test check-math-rtest check-math-ulp check-math install-math clean-math
/external/llvm-project/libc/AOR_v20.02/math/
DDir.mk14 $(S)/test/ulp.c \
29 build/bin/ulp \
55 $(B)/test/ulp.o: $(S)/test/ulp.h
81 build/bin/ulp: $(B)/test/ulp.o build/lib/libmathlib.a
99 check-math-ulp: $(math-tools)
102 check-math: check-math-test check-math-rtest check-math-ulp
111 .PHONY: all-math check-math-test check-math-rtest check-math-ulp check-math install-math clean-math
/external/oboe/samples/RhythmGame/third_party/glm/gtc/
Dulp.inl2 /// @file glm/gtc/ulp.inl
91 if(hx>hy) { // x > y, x -= ulp
93 } else { // x < y, x += ulp
97 if(hy>=0||hx>hy){ // x < y, x -= ulp
99 } else { // x > y, x += ulp
137 if(hx>hy||((hx==hy)&&(lx>ly))) { // x > y, x -= ulp
140 } else { // x < y, x += ulp
145 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){// x < y, x -= ulp
148 } else { // x > y, x += ulp
285 uint ulp = 0; local
[all …]
/external/OpenCL-CTS/test_conformance/math_brute_force/
Dutility.cpp166 float ulp; in getAllowedUlpError() local
172 ulp = f->relaxed_embedded_error; in getAllowedUlpError()
176 ulp = f->relaxed_error; in getAllowedUlpError()
183 ulp = f->float_embedded_ulps; in getAllowedUlpError()
187 ulp = f->float_ulps; in getAllowedUlpError()
191 return ulp; in getAllowedUlpError()
DREADME.txt58 2) within the allowed ulp error tolerance of the infinitely precise
77 the estimated infinitely precise result is within the stated ulp
83 infinitely precise result is within the stated ulp error limit
116 precise result. (The ulp is defined in section 7.4 of the spec.) If the input value corresponds
131 may have >= 1 ulp of error. This places the 1's bit at the LSB of the result, with 23 bits of
132 sub-ulp accuracy. One more bit is required to avoid accrual of extra error due to round-to-
133 nearest behavior. If we start to require sub-ulp precision, then the accuracy requirements
/external/ipsec-tools/src/racoon/
Dpolicy.h112 #define KEY_SETSECSPIDX(_dir, s, d, ps, pd, ulp, _priority, _created, idx) \ argument
118 (idx)->ul_proto = (ulp); \
125 #define KEY_SETSECSPIDX(_dir, s, d, ps, pd, ulp, _created, idx) \ argument
131 (idx)->ul_proto = (ulp); \
/external/ipsec-tools/src/libipsec/
Dpfkey_dump.c695 str_prefport(family, pref, port, ulp) in str_prefport() argument
696 u_int family, pref, port, ulp; in str_prefport()
719 if (ulp == IPPROTO_ICMPV6)
734 str_upperspec(ulp, p1, p2) in str_upperspec() argument
735 u_int ulp, p1, p2; in str_upperspec()
737 if (ulp == IPSEC_ULPROTO_ANY)
739 else if (ulp == IPPROTO_ICMPV6) {
746 switch (ulp) {
751 ent = getprotobynumber((int)ulp);
755 printf("%u", ulp);
/external/OpenCL-CTS/test_conformance/basic/
Dtest_multireadimageonefmt.cpp69 float ulp, max_ulp = 0.0f; in verify_multireadimage() local
81 ulp = Ulp_Error(outptr[i], sum); in verify_multireadimage()
82 if (ulp > max_ulp) in verify_multireadimage()
83 max_ulp = ulp; in verify_multireadimage()
Dtest_multireadimagemultifmt.cpp88 float ulp, max_ulp = 0.0f; in verify_multireadimage() local
98 ulp = Ulp_Error(outptr[i], sum); in verify_multireadimage()
99 if (ulp > max_ulp) in verify_multireadimage()
100 max_ulp = ulp; in verify_multireadimage()
/external/fdlibm/
Dchanges64 2. k_tan.c error was > 1 ulp target for FDLIBM
65 5.2: Worst error at least 1.45 ulp at
67 5.3: Worst error 0.96 ulp
Dreadme25 2. k_tan.c error was > 1 ulp target for FDLIBM
26 5.2: Worst error at least 1.45 ulp at
28 5.3: Worst error 0.96 ulp
44 assumptions below), reference quality (below one ulp for
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktSampleVerifierUtil.cpp138 float addUlp (float num, deInt32 ulp) in addUlp() argument
145 DE_ASSERT(num > FLT_MIN * (float) ulp || num < FLT_MIN * (float) ulp); in addUlp()
147 return tcu::Float32(f.bits() + ulp).asFloat(); in addUlp()
648 Interval resultInterval(value - internalFormat->ulp(value), value + internalFormat->ulp(value)); in convertNormalizedInt()
904 resultMin[compNdx] -= float(internalFormat[compNdx]->ulp(1.0)); in convertNormalizedFormat()
906 resultMax[compNdx] += float(internalFormat[compNdx]->ulp(0.0)); in convertNormalizedFormat()
/external/deqp/framework/common/
DtcuFloatFormat.hpp61 virtual double ulp (double x, double count = 1.0) const;
93 double ulp (double x, double count = 1.0) const override;
DtcuFloatFormat.cpp98 double FloatFormat::ulp (double x, double count) const in ulp() function in tcu::FloatFormat
317 double NormalizedFormat::ulp(double x, double count) const in ulp() function in tcu::NormalizedFormat
372 check(oss.str(), m_fmt->ulp(arg), ref); in testULP()
/external/arm-optimized-routines/
DAndroid.bp158 name: "ulp",
161 srcs: ["math/test/ulp.c"],
175 "ulp",
Dconfig.mk.dist48 # Use if mpfr is available on the target for ulp error checking.
/external/tensorflow/tensorflow/lite/kernels/
Dpooling_test.cc429 const float ulp = 1.f / 4096.f; in TEST() local
432 /*input=*/{TensorType_INT16, {1, 2, 4, 1}, 0, 16 - ulp}, in TEST()
434 /*output=*/{TensorType_INT16, {}, 0, 16 - ulp}); in TEST()
911 const float ulp = 1.f / 4096.f; in TEST() local
914 /*input=*/{TensorType_INT16, {1, 2, 4, 1}, 0, 16 - ulp}, in TEST()
916 /*output=*/{TensorType_INT16, {}, 0, 16 - ulp}); in TEST()
/external/llvm-project/libc/AOR_v20.02/math/test/
Drunulp.sh25 $emu ./ulp -r $r -e $Lt $flags "$@" && PASS=$((PASS+1)) || FAIL=$((FAIL+1))
29 $emu ./ulp -f -q "$@" >/dev/null
/external/kernel-headers/original/uapi/linux/
Dif_hippi.h82 __u8 ulp; /* must contain 4 */
/external/arm-optimized-routines/math/test/
Drunulp.sh24 $emu ./ulp -r $r -e $Lt $flags "$@" && PASS=$((PASS+1)) || FAIL=$((FAIL+1))
28 $emu ./ulp -f -q "$@" >/dev/null
/external/python/cpython3/Modules/_decimal/libmpdec/literature/
DREFERENCES.txt11 Jean-Michel Muller: On the definition of ulp (x)
/external/python/cpython3/Lib/test/
Dtest_math.py449 self.ftest('cos(-pi/2)', math.cos(-math.pi/2), 0, abs_tol=math.ulp(1))
451 self.ftest('cos(pi/2)', math.cos(math.pi/2), 0, abs_tol=math.ulp(1))
1467 abs_tol=math.ulp(1))
1974 self.assertEqual(math.ulp(1.0), sys.float_info.epsilon)
1976 self.assertEqual(math.ulp(2 ** 52), 1.0)
1977 self.assertEqual(math.ulp(2 ** 53), 2.0)
1978 self.assertEqual(math.ulp(2 ** 64), 4096.0)
1981 self.assertEqual(math.ulp(0.0),
1983 self.assertEqual(math.ulp(FLOAT_MAX),
1987 self.assertEqual(math.ulp(INF), INF)
[all …]
/external/llvm-project/libc/AOR_v20.02/
Dconfig.mk.dist46 # Use if mpfr is available on the target for ulp error checking.

1234