Home
last modified time | relevance | path

Searched refs:math (Results 1 – 25 of 4708) sorted by relevance

12345678910>>...189

/external/python/cpython2/Lib/test/
Dtest_math.py6 import math
71 if math.isinf(expected) and got == expected:
143 self.ftest('pi', math.pi, 3.1415926)
144 self.ftest('e', math.e, 2.7182818)
147 self.assertRaises(TypeError, math.acos)
148 self.ftest('acos(-1)', math.acos(-1), math.pi)
149 self.ftest('acos(0)', math.acos(0), math.pi/2)
150 self.ftest('acos(1)', math.acos(1), 0)
151 self.assertRaises(ValueError, math.acos, INF)
152 self.assertRaises(ValueError, math.acos, NINF)
[all …]
/external/llvm-project/libclc/generic/lib/
DSOURCES80 math/acos.cl
81 math/acosh.cl
82 math/acospi.cl
83 math/asin.cl
84 math/asinh.cl
85 math/asinpi.cl
86 math/atan.cl
87 math/atan2.cl
88 math/atan2pi.cl
89 math/atanh.cl
[all …]
/external/python/cpython3/Lib/test/
Dtest_math.py9 import math
200 if math.isnan(expected) and math.isnan(got):
203 elif math.isinf(expected) or math.isinf(got):
254 self.ftest('pi', math.pi, 3.141592653589793238462643)
255 self.ftest('e', math.e, 2.718281828459045235360287)
256 self.assertEqual(math.tau, 2*math.pi)
259 self.assertRaises(TypeError, math.acos)
260 self.ftest('acos(-1)', math.acos(-1), math.pi)
261 self.ftest('acos(0)', math.acos(0), math.pi/2)
262 self.ftest('acos(1)', math.acos(1), 0)
[all …]
/external/arm-optimized-routines/math/
DDir.mk6 S := $(srcdir)/math
7 B := build/math
9 math-lib-srcs := $(wildcard $(S)/*.[cS])
10 math-test-srcs := \
15 math-test-host-srcs := $(wildcard $(S)/test/rtest/*.[cS])
17 math-includes := $(patsubst $(S)/%,build/%,$(wildcard $(S)/include/*.h))
19 math-libs := \
23 math-tools := \
30 math-host-tools := \
33 math-lib-objs := $(patsubst $(S)/%,$(B)/%.o,$(basename $(math-lib-srcs)))
[all …]
/external/llvm-project/libc/AOR_v20.02/math/
DDir.mk7 S := $(srcdir)/math
8 B := build/math
10 math-lib-srcs := $(wildcard $(S)/*.[cS])
11 math-test-srcs := \
16 math-test-host-srcs := $(wildcard $(S)/test/rtest/*.[cS])
18 math-includes := $(patsubst $(S)/%,build/%,$(wildcard $(S)/include/*.h))
20 math-libs := \
24 math-tools := \
31 math-host-tools := \
34 math-lib-objs := $(patsubst $(S)/%,$(B)/%.o,$(basename $(math-lib-srcs)))
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bigdec/
DDiagBigDecimalTest.java15 import java.math.BigInteger;
24 import android.icu.math.BigDecimal;
107 private static final android.icu.math.BigDecimal zero = android.icu.math.BigDecimal.ZERO;
108 private static final android.icu.math.BigDecimal one = android.icu.math.BigDecimal.ONE;
109 private static final android.icu.math.BigDecimal two = new android.icu.math.BigDecimal(2);
110 private static final android.icu.math.BigDecimal ten = android.icu.math.BigDecimal.TEN;
111 …private static final android.icu.math.BigDecimal tenlong = new android.icu.math.BigDecimal((long) …
114 private static final android.icu.math.MathContext mcdef = android.icu.math.MathContext.DEFAULT;
115 private static final android.icu.math.MathContext mc3 = new android.icu.math.MathContext(3);
116 private static final android.icu.math.MathContext mc6 = new android.icu.math.MathContext(6);
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bigdec/
DDiagBigDecimalTest.java14 import java.math.BigInteger;
23 import com.ibm.icu.math.BigDecimal;
104 private static final com.ibm.icu.math.BigDecimal zero = com.ibm.icu.math.BigDecimal.ZERO;
105 private static final com.ibm.icu.math.BigDecimal one = com.ibm.icu.math.BigDecimal.ONE;
106 private static final com.ibm.icu.math.BigDecimal two = new com.ibm.icu.math.BigDecimal(2);
107 private static final com.ibm.icu.math.BigDecimal ten = com.ibm.icu.math.BigDecimal.TEN;
108 …private static final com.ibm.icu.math.BigDecimal tenlong = new com.ibm.icu.math.BigDecimal((long) …
111 private static final com.ibm.icu.math.MathContext mcdef = com.ibm.icu.math.MathContext.DEFAULT;
112 private static final com.ibm.icu.math.MathContext mc3 = new com.ibm.icu.math.MathContext(3);
113 private static final com.ibm.icu.math.MathContext mc6 = new com.ibm.icu.math.MathContext(6);
[all …]
/external/llvm-project/libclc/spirv/lib/
DSOURCES20 ../../generic/lib/math/acos.cl
21 ../../generic/lib/math/acosh.cl
22 ../../generic/lib/math/acospi.cl
23 ../../generic/lib/math/asin.cl
24 ../../generic/lib/math/asinh.cl
25 ../../generic/lib/math/asinpi.cl
26 ../../generic/lib/math/atan.cl
27 ../../generic/lib/math/atan2.cl
28 ../../generic/lib/math/atan2pi.cl
29 ../../generic/lib/math/atanh.cl
[all …]
/external/llvm-project/libclc/spirv64/lib/
DSOURCES20 ../../generic/lib/math/acos.cl
21 ../../generic/lib/math/acosh.cl
22 ../../generic/lib/math/acospi.cl
23 ../../generic/lib/math/asin.cl
24 ../../generic/lib/math/asinh.cl
25 ../../generic/lib/math/asinpi.cl
26 ../../generic/lib/math/atan.cl
27 ../../generic/lib/math/atan2.cl
28 ../../generic/lib/math/atan2pi.cl
29 ../../generic/lib/math/atanh.cl
[all …]
/external/llvm-project/libc/fuzzing/math/
DCMakeLists.txt11 libc.src.math.ceil
12 libc.src.math.ceilf
13 libc.src.math.ceill
14 libc.src.math.fdim
15 libc.src.math.fdimf
16 libc.src.math.fdiml
17 libc.src.math.floor
18 libc.src.math.floorf
19 libc.src.math.floorl
20 libc.src.math.frexp
[all …]
/external/llvm-project/libc/config/linux/aarch64/
Dentrypoints.txt43 # math.h entrypoints
44 libc.src.math.copysign
45 libc.src.math.copysignf
46 libc.src.math.copysignl
47 libc.src.math.ceil
48 libc.src.math.ceilf
49 libc.src.math.ceill
50 libc.src.math.cosf
51 libc.src.math.expf
52 libc.src.math.exp2f
[all …]
/external/llvm-project/libc/config/linux/x86_64/
Dentrypoints.txt86 # math.h entrypoints
87 libc.src.math.copysign
88 libc.src.math.copysignf
89 libc.src.math.copysignl
90 libc.src.math.ceil
91 libc.src.math.ceilf
92 libc.src.math.ceill
93 libc.src.math.cosf
94 libc.src.math.expf
95 libc.src.math.exp2f
[all …]
/external/llvm-project/libc/test/src/math/
DCMakeLists.txt38 libc.src.math.cosf
54 libc.src.math.sinf
70 libc.src.math.sincosf
83 libc.include.math
84 libc.src.math.fabs
96 libc.include.math
97 libc.src.math.fabsf
109 libc.include.math
110 libc.src.math.fabsl
122 libc.include.math
[all …]
/external/mesa3d/src/intel/tools/tests/gen7.5/
Dmath.asm1 math sqrt(8) g25<1>.xF g24<4>.xF null<4>F { align16 1Q }; label
2 math inv(8) g5<1>F g4<8,8,1>F null<8,8,1>F { align1 1Q }; label
3 math inv(16) g10<1>F g8<8,8,1>F null<8,8,1>F { align1 1H }; label
4 math intmod(8) g21<1>.xyUD g1<0>.xUD g1<0>.yzzzUD { align16 1Q }; label
5 math inv(8) g11<1>.xyzF g2<0>.xyzzF null<4>F { align16 1Q }; label
6 math sqrt(8) g9<1>F g8<8,8,1>F null<8,8,1>F { align1 1Q }; label
7 math sqrt(16) g15<1>F g13<8,8,1>F null<8,8,1>F { align1 1H }; label
8 math pow(8) g20<1>F g14<8,8,1>F g20<0,1,0>F { align1 1Q }; label
9 math pow(16) g26<1>F g24<8,8,1>F g28<0,1,0>F { align1 1H }; label
10 math intmod(8) g4<1>UD g2<0,1,0>UD g2.3<0,1,0>UD { align1 1Q }; label
[all …]
/external/mesa3d/src/intel/tools/tests/gen7/
Dmath.asm1 math inv(8) g6<1>F g2<0,1,0>F null<8,8,1>F { align1 1Q }; label
2 math inv(16) g10<1>F g2<0,1,0>F null<8,8,1>F { align1 1H }; label
3 math inv(8) g11<1>.xyzF g2<0>.xyzzF null<4>F { align16 1Q }; label
4 math sqrt(8) g13<1>.xF g12<4>.xF null<4>F { align16 1Q }; label
5 math sqrt(8) g9<1>F g8<8,8,1>F null<8,8,1>F { align1 1Q }; label
6 math sqrt(16) g6<1>F g4<8,8,1>F null<8,8,1>F { align1 1H }; label
7 math pow(8) g20<1>F g14<8,8,1>F g20<0,1,0>F { align1 1Q }; label
8 math pow(16) g21<1>F g19<8,8,1>F g25<0,1,0>F { align1 1H }; label
9 math intmod(8) g13<1>UD g6<0>UD g5.4<0>.zUD { align16 1Q }; label
10 math pow(8) g14<1>.xF g13<4>.xF g12<4>.xF { align16 1Q }; label
[all …]
/external/starlark-go/starlark/
Dint_test.go17 left, right := big.NewInt(math.MinInt32), big.NewInt(math.MaxInt32)
24 {f(math.MaxInt32).Add(f(1)), "80000000"},
25 {f(math.MinInt32).Add(f(-1)), "-80000001"},
27 {f(math.MaxInt32).Mul(f(math.MaxInt32)), "3fffffff00000001"},
28 {f(math.MinInt32).Mul(f(math.MinInt32)), "4000000000000000"},
29 {f(math.MaxUint32).Mul(f(math.MaxUint32)), "fffffffe00000001"},
30 {f(math.MinInt32).Mul(f(-1)), "80000000"},
32 {f(math.MinInt32).Div(f(-1)), "80000000"},
35 {f(math.MaxInt32).And(f(math.MaxInt32)), "7fffffff"},
36 {f(math.MinInt32).And(f(math.MinInt32)), "-80000000"},
[all …]
/external/mesa3d/src/intel/tools/tests/gen9/
Dmath.asm1 math sqrt(16) g20<1>F g18<8,8,1>F null<8,8,1>F { align1 1H }; label
2 math inv(8) g95<1>F g94<8,8,1>F null<8,8,1>F { align1 1Q }; label
3 math inv(16) g10<1>F g8<8,8,1>F null<8,8,1>F { align1 1H }; label
4 math intmod(8) g3<1>UD g1<0,1,0>UD g1.2<0,1,0>UD { align1 1Q }; label
5 math intmod(8) g4<1>UD g1<0,1,0>UD g1.2<0,1,0>UD { align1 2Q }; label
6 math sqrt(8) g24<1>F g23<8,8,1>F null<8,8,1>F { align1 1Q }; label
7 math rsq(8) g5<1>F g2<8,8,1>F null<8,8,1>F { align1 1Q }; label
8 math pow(8) g11<1>F g10<8,8,1>F 0x42fc6666F /* 126.2F */ { align1 1Q }; label
9 math pow(16) g18<1>F g16<8,8,1>F 0x42fc6666F /* 126.2F */ { align1 1H }; label
10 math log(8) g7<1>F g6<8,8,1>F null<8,8,1>F { align1 1Q }; label
[all …]
/external/mesa3d/src/intel/tools/tests/gen8/
Dmath.asm1 math sqrt(16) g27<1>F g25<8,8,1>F null<8,8,1>F { align1 1H }; label
2 math inv(8) g95<1>F g94<8,8,1>F null<8,8,1>F { align1 1Q }; label
3 math inv(16) g10<1>F g8<8,8,1>F null<8,8,1>F { align1 1H }; label
4 math intmod(8) g3<1>UD g1<0,1,0>UD g1.2<0,1,0>UD { align1 1Q }; label
5 math intmod(8) g4<1>UD g1<0,1,0>UD g1.2<0,1,0>UD { align1 2Q }; label
6 math sqrt(8) g24<1>F g23<8,8,1>F null<8,8,1>F { align1 1Q }; label
7 math rsq(8) g5<1>F g2<8,8,1>F null<8,8,1>F { align1 1Q }; label
8 math pow(8) g20<1>F g14<8,8,1>F 0x42fc6666F /* 126.2F */ { align1 1Q }; label
9 math pow(16) g26<1>F g24<8,8,1>F 0x42fc6666F /* 126.2F */ { align1 1H }; label
10 math log(8) g7<1>F g6<8,8,1>F null<8,8,1>F { align1 1Q }; label
[all …]
/external/mesa3d/src/intel/tools/tests/gen6/
Dmath.asm1 math inv(8) g7<1>F g10<8,8,1>F null<8,8,1>F { align1 1Q }; label
2 math inv(8) g13<1>F g18<8,8,1>F null<8,8,1>F { align1 2Q }; label
3 math pow(8) g16<1>F g15<8,8,1>F g14<8,8,1>F { align1 1Q }; label
4 math pow(8) g24<1>F g22<8,8,1>F g20<8,8,1>F { align1 2Q }; label
5 math cos(8) g3<1>F g2<8,8,1>F null<8,8,1>F { align1 1Q }; label
6 math cos(8) g5<1>F g3<8,8,1>F null<8,8,1>F { align1 2Q }; label
7 math sqrt(8) g16<1>F g15<8,8,1>F null<8,8,1>F { align1 1Q }; label
8 math log(8) g21<1>F g20<8,8,1>F null<8,8,1>F { align1 1Q }; label
9 math sqrt(8) g11<1>F g3<8,8,1>F null<8,8,1>F { align1 2Q }; label
10 math log(8) g2<1>F g13<8,8,1>F null<8,8,1>F { align1 2Q }; label
[all …]
/external/llvm-project/llvm/test/Other/
Dopt-override-denormal-fp-math-mixed.ll1 ; RUN: opt -S -denormal-fp-math=ieee %s | FileCheck -check-prefixes=IEEE,ALL %s
2 ; RUN: opt -S -denormal-fp-math=preserve-sign %s | FileCheck -check-prefixes=PRESERVESIGN,ALL %s
3 ; RUN: opt -S -denormal-fp-math=positive-zero %s | FileCheck -check-prefixes=POSITIVEZERO,ALL %s
5 ; RUN: opt -S -denormal-fp-math-f32=ieee %s | FileCheck -check-prefixes=IEEEF32,ALL %s
6 ; RUN: opt -S -denormal-fp-math-f32=preserve-sign %s | FileCheck -check-prefixes=PRESERVESIGNF32,AL…
7 ; RUN: opt -S -denormal-fp-math-f32=positive-zero %s | FileCheck -check-prefixes=POSITIVEZEROF32,AL…
9 ; RUN: opt -S -denormal-fp-math=ieee -denormal-fp-math-f32=ieee %s | FileCheck -check-prefixes=IEEE…
10 ; RUN: opt -S -denormal-fp-math=preserve-sign -denormal-fp-math-f32=preserve-sign %s | FileCheck -c…
11 ; RUN: opt -S -denormal-fp-math=positive-zero -denormal-fp-math-f32=positive-zero %s | FileCheck -c…
27 …LL-DAG: attributes [[ATTR]] = { nounwind "denormal-fp-math"="preserve-sign,ieee" "denormal-fp-math
[all …]
/external/llvm-project/libclc/amdgpu/lib/
DSOURCES1 math/native_exp.cl
2 math/native_log.cl
3 math/native_log10.cl
4 math/half_exp.cl
5 math/half_exp10.cl
6 math/half_exp2.cl
7 math/half_log.cl
8 math/half_log10.cl
9 math/half_log2.cl
10 math/half_recip.cl
[all …]
/external/llvm-project/clang/test/CodeGenOpenCL/
Drelaxed-fpmath.cl2 // RUN: %clang_cc1 %s -emit-llvm -cl-fast-relaxed-math -o - | FileCheck %s -check-prefix=FAST
3 // RUN: %clang_cc1 %s -emit-llvm -cl-finite-math-only -o - | FileCheck %s -check-prefix=FINITE
4 // RUN: %clang_cc1 %s -emit-llvm -cl-unsafe-math-optimizations -o - | FileCheck %s -check-prefix=UN…
11 // RUN: %clang_cc1 %s -include-pch %t.pch -fno-validate-pch -emit-llvm -cl-fast-relaxed-math -o - |…
12 // RUN: %clang_cc1 %s -include-pch %t.pch -fno-validate-pch -emit-llvm -cl-finite-math-only -o - | …
13 // RUN: %clang_cc1 %s -include-pch %t.pch -fno-validate-pch -emit-llvm -cl-unsafe-math-optimization…
33 // NORMAL: "no-infs-fp-math"="false"
34 // NORMAL: "no-nans-fp-math"="false"
35 // NORMAL: "no-signed-zeros-fp-math"="false"
36 // NORMAL: "unsafe-fp-math"="false"
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/math/
DBigDecimal.java6 package android.icu.math;
8 import java.math.BigInteger;
235 …public static final android.icu.math.BigDecimal ZERO = new android.icu.math.BigDecimal((long) 0); …
246 …public static final android.icu.math.BigDecimal ONE = new android.icu.math.BigDecimal((long) 1); /…
257 public static final android.icu.math.BigDecimal TEN = new android.icu.math.BigDecimal(10);
265 public static final int ROUND_CEILING = android.icu.math.MathContext.ROUND_CEILING;
272 public static final int ROUND_DOWN = android.icu.math.MathContext.ROUND_DOWN;
279 public static final int ROUND_FLOOR = android.icu.math.MathContext.ROUND_FLOOR;
286 public static final int ROUND_HALF_DOWN = android.icu.math.MathContext.ROUND_HALF_DOWN;
293 public static final int ROUND_HALF_EVEN = android.icu.math.MathContext.ROUND_HALF_EVEN;
[all …]
/external/llvm-project/clang-tools-extra/clangd/
DCSymbolMap.inc79 SYMBOL(FP_INFINITE, None, <math.h>)
80 SYMBOL(FP_NAN, None, <math.h>)
81 SYMBOL(FP_NORNAL, None, <math.h>)
82 SYMBOL(FP_SUBNORMAL, None, <math.h>)
83 SYMBOL(FP_ZERO, None, <math.h>)
84 SYMBOL(HUGE_VAL, None, <math.h>)
85 SYMBOL(HUGE_VALF, None, <math.h>)
86 SYMBOL(HUGE_VALL, None, <math.h>)
88 SYMBOL(INFINITY, None, <math.h>)
143 SYMBOL(MATH_ERREXCEPT, None, <math.h>)
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DBigDecimal.java5 package com.ibm.icu.math;
7 import java.math.BigInteger;
236 …public static final com.ibm.icu.math.BigDecimal ZERO = new com.ibm.icu.math.BigDecimal((long) 0); …
248 …public static final com.ibm.icu.math.BigDecimal ONE = new com.ibm.icu.math.BigDecimal((long) 1); /…
260 public static final com.ibm.icu.math.BigDecimal TEN = new com.ibm.icu.math.BigDecimal(10);
269 public static final int ROUND_CEILING = com.ibm.icu.math.MathContext.ROUND_CEILING;
277 public static final int ROUND_DOWN = com.ibm.icu.math.MathContext.ROUND_DOWN;
285 public static final int ROUND_FLOOR = com.ibm.icu.math.MathContext.ROUND_FLOOR;
293 public static final int ROUND_HALF_DOWN = com.ibm.icu.math.MathContext.ROUND_HALF_DOWN;
301 public static final int ROUND_HALF_EVEN = com.ibm.icu.math.MathContext.ROUND_HALF_EVEN;
[all …]

12345678910>>...189