/external/compiler-rt/lib/ubsan/ |
D | ubsan_checks.inc | 1 //===-- ubsan_checks.inc ----------------------------------------*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 10 // List of checks handled by UBSan runtime. 12 //===----------------------------------------------------------------------===// 20 UBSAN_CHECK(GenericUB, "undefined-behavior", "undefined") 21 UBSAN_CHECK(NullPointerUse, "null-pointer-use", "null") 22 UBSAN_CHECK(MisalignedPointerUse, "misaligned-pointer-use", "alignment") 23 UBSAN_CHECK(InsufficientObjectSize, "insufficient-object-size", "object-size") 24 UBSAN_CHECK(SignedIntegerOverflow, "signed-integer-overflow", 25 "signed-integer-overflow") [all …]
|
/external/crcalc/tests/src/com/hp/creals/ |
D | SlowCRTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 32 final static int TEST_PREC = -200; // 200 bits to the right of 40 check(Math.abs(x - y) <= 0.000001, s); in checkApprEq() 43 BigInteger.ONE.shiftLeft(-TEST_PREC).subtract(BigInteger.ONE); 49 final static CR ZERO = CR.valueOf(0); field in SlowCRTest 54 final static CR HALF_PI = CR.PI.divide(CR.valueOf(2)); 59 .monotoneDerivative(ZERO, CR.PI); 70 "sin float compare:" + xAsDouble); in checkTrig() 72 "cos float compare:" + xAsDouble); in checkTrig() [all …]
|
/external/skia/include/private/ |
D | SkFloatingPoint.h | 4 * Use of this source code is governed by a BSD-style license that can be 14 #include <float.h> 31 // C++98 cmath std::pow seems to be the earliest portable way to get float pow. 34 static inline float sk_float_pow(float base, float exp) { in sk_float_pow() 46 # define sk_float_acos(x) static_cast<float>(acos(x)) 47 # define sk_float_asin(x) static_cast<float>(asin(x)) 63 static inline float sk_float_log2(float x) { in sk_float_log2() 65 return (float)(log(x) * inv_ln_2); in sk_float_log2() 71 static inline bool sk_float_isfinite(float x) { in sk_float_isfinite() 75 static inline bool sk_float_isinf(float x) { in sk_float_isinf() [all …]
|
/external/skqp/include/private/ |
D | SkFloatingPoint.h | 4 * Use of this source code is governed by a BSD-style license that can be 14 #include <float.h> 31 // C++98 cmath std::pow seems to be the earliest portable way to get float pow. 34 static inline float sk_float_pow(float base, float exp) { in sk_float_pow() 46 # define sk_float_acos(x) static_cast<float>(acos(x)) 47 # define sk_float_asin(x) static_cast<float>(asin(x)) 63 static inline float sk_float_log2(float x) { in sk_float_log2() 65 return (float)(log(x) * inv_ln_2); in sk_float_log2() 71 static inline bool sk_float_isfinite(float x) { in sk_float_isfinite() 75 static inline bool sk_float_isinf(float x) { in sk_float_isinf() [all …]
|
/external/compiler-rt/test/ubsan/TestCases/Integer/ |
D | div-zero.cpp | 1 // RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND=0 %s -o %t && %run %t 2>&1 | FileChec… 2 // RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND=1U %s -o %t && %run %t 2>&1 | FileChe… 3 // RUN: %clangxx -fsanitize=float-divide-by-zero -DDIVIDEND=1.5 %s -o %t && %run %t 2>&1 | FileChec… 4 // RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND='intmax(123)' %s -o %t && %run %t 2>&… 13 // CHECK: div-zero.cpp:[[@LINE+1]]:12: runtime error: division by zero in main()
|
/external/clang/test/CodeGenCXX/ |
D | catch-undef-behavior2.cpp | 1 …-std=c++11 -fsanitize=signed-integer-overflow,integer-divide-by-zero,float-divide-by-zero,shift-ba… 5 // CHECK-LABEL: @_Z7GetBoolb in GetBool() 6 // CHECK-NOT: select in GetBool()
|
/external/clang/test/Driver/ |
D | fsanitize.c | 1 …UN: %clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize-trap=undefined %s -### 2>&1 | … 2 …-target x86_64-linux-gnu -fsanitize=undefined -fsanitize-trap=undefined -fno-sanitize-trap=signed-… 3 …clang -target x86_64-linux-gnu -fsanitize=undefined -fsanitize-undefined-trap-on-error %s -### 2>&… 4 …ang -target x86_64-linux-gnu -fsanitize=undefined-trap -fsanitize-undefined-trap-on-error %s -### … 5 …ang -target x86_64-linux-gnu -fsanitize-undefined-trap-on-error -fsanitize=undefined-trap %s -### … 6 …-UNDEFINED-TRAP: "-fsanitize={{((signed-integer-overflow|integer-divide-by-zero|float-divide-by-ze… 7 …-UNDEFINED-TRAP: "-fsanitize-trap=alignment,array-bounds,bool,enum,float-cast-overflow,float-divid… 8 …-UNDEFINED-TRAP2: "-fsanitize-trap=alignment,array-bounds,bool,enum,float-cast-overflow,float-divi… 10 // RUN: %clang -target x86_64-linux-gnu -fsanitize=undefined %s -### 2>&1 | FileCheck %s --check-pr… 11 …-UNDEFINED: "-fsanitize={{((signed-integer-overflow|integer-divide-by-zero|float-divide-by-zero|fu… [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
D | BigFraction.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 11 * Unless required by applicable law or agreed to in writing, software 33 * @version $Revision: 1073687 $ $Date: 2011-02-23 11:39:25 +0100 (mer. 23 févr. 2011) $ 47 public static final BigFraction ZERO = new BigFraction(0); field in BigFraction 49 /** A fraction representing "-1 / 1". */ 50 public static final BigFraction MINUS_ONE = new BigFraction(-1); 83 private static final long serialVersionUID = -5630213147331578515L; 113 * @throws ArithmeticException if the denominator is zero. 122 if (BigInteger.ZERO.equals(den)) { in BigFraction() 125 if (BigInteger.ZERO.equals(num)) { in BigFraction() [all …]
|
D | Fraction.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 11 * Unless required by applicable law or agreed to in writing, software 35 * @version $Revision: 990655 $ $Date: 2010-08-29 23:49:40 +0200 (dim. 29 août 2010) $ 48 public static final Fraction ZERO = new Fraction(0, 1); field in Fraction 80 /** A fraction representing "-1 / 1". */ 81 public static final Fraction MINUS_ONE = new Fraction(-1, 1); 99 this(value, 1.0e-5, 100); in Fraction() 108 * Continued Fraction</a> equations (11) and (22)-(26)</li> 130 * Continued Fraction</a> equations (11) and (22)-(26)</li> 150 * - a valid epsilon value and the maxDenominator set to Integer.MAX_VALUE [all …]
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | PhysicsComponent.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 25 private float mMass; 26 private float mBounciness; // 1.0 = super bouncy, 0.0 = zero bounce 27 private float mInertia; 28 private float mStaticFrictionCoeffecient; 29 private float mDynamicFrictionCoeffecient; 31 private static final float DEFAULT_MASS = 1.0f; 32 private static final float DEFAULT_BOUNCINESS = 0.1f; 33 private static final float DEFAULT_INERTIA = 0.01f; [all …]
|
D | Vector2.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 23 public float x; 24 public float y; 26 public static final Vector2 ZERO = new Vector2(0, 0); field in Vector2 32 public Vector2(float xValue, float yValue) { in Vector2() 45 public final void add(float otherX, float otherY) { in add() 51 x -= other.x; in subtract() 52 y -= other.y; in subtract() 55 public final void multiply(float magnitude) { in multiply() [all …]
|
/external/clang/test/CodeGen/ |
D | catch-undef-behavior.c | 1 …-fsanitize=alignment,null,object-size,shift-base,shift-exponent,return,signed-integer-overflow,vla… 2 …-fsanitize-trap=alignment,null,object-size,shift-base,shift-exponent,return,signed-integer-overflo… 3 …RUN: %clang_cc1 -fsanitize=null -fsanitize-recover=null -emit-llvm %s -o - -triple x86_64-linux-gn… 4 // RUN: %clang_cc1 -fsanitize=signed-integer-overflow -emit-llvm %s -o - -triple x86_64-linux-gnu |… 6 // CHECK-UBSAN: @[[INT:.*]] = private unnamed_addr constant { i16, i16, [6 x i8] } { i16 0, i16 11,… 9 // CHECK-UBSAN: @[[LINE_100:.*]] = private unnamed_addr global {{.*}}, i32 100, i32 5 {{.*}} @[[INT… 10 // CHECK-UBSAN: @[[LINE_200:.*]] = {{.*}}, i32 200, i32 10 {{.*}}, i64 4, i8 0 11 // CHECK-UBSAN: @[[LINE_300:.*]] = {{.*}}, i32 300, i32 12 {{.*}} @{{.*}}, {{.*}} @{{.*}} 12 // CHECK-UBSAN: @[[LINE_400:.*]] = {{.*}}, i32 400, i32 12 {{.*}} @{{.*}}, {{.*}} @{{.*}} 13 // CHECK-UBSAN: @[[LINE_500:.*]] = {{.*}}, i32 500, i32 10 {{.*}} @{{.*}}, i64 4, i8 0 } [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APInt.h | 1 //===-- llvm/ADT/APInt.h - For Arbitrary Precision Integer -----*- C++ -*--===// 8 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===// 35 // An unsigned host type used as a single part of a multi-part 45 inline APInt operator-(APInt); 47 //===----------------------------------------------------------------------===// 49 //===----------------------------------------------------------------------===// 54 /// "unsigned", "unsigned long" or "uint64_t", but also allows non-byte-width 55 /// integer sizes and large integer value types such as 3-bits, 15-bits, or more 56 /// than 64-bits of precision. APInt provides a variety of arithmetic operators [all …]
|
D | APFloat.h | 1 //===- llvm/ADT/APFloat.h - Arbitrary Precision Floating Point ---*- C++ -*-==// 8 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===// 40 lfLessThanHalf, // 0xxxxx x's not all zero 42 lfMoreThanHalf // 1xxxxx x's not all zero 45 /// \brief A self-contained host- and target-independent arbitrary-precision 46 /// floating-point software implementation. 48 /// APFloat uses bignum integer arithmetic as provided by static functions in 53 /// the front-end of a cross compiler so that target arithmetic can be correctly 56 /// implementation for a run-time library during development of a faster [all …]
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 1 //===-- llvm/ADT/APInt.h - For Arbitrary Precision Integer -----*- C++ -*--===// 8 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===// 35 // An unsigned host type used as a single part of a multi-part 43 //===----------------------------------------------------------------------===// 45 //===----------------------------------------------------------------------===// 50 /// "unsigned", "unsigned long" or "uint64_t", but also allows non-byte-width 51 /// integer sizes and large integer value types such as 3-bits, 15-bits, or more 52 /// than 64-bits of precision. APInt provides a variety of arithmetic operators 53 /// and methods to manipulate integer values of any bit-width. It supports both [all …]
|
D | APFloat.h | 1 //===- llvm/ADT/APFloat.h - Arbitrary Precision Floating Point ---*- C++ -*-==// 8 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===// 36 lfLessThanHalf, // 0xxxxx x's not all zero 38 lfMoreThanHalf // 1xxxxx x's not all zero 41 /// \brief A self-contained host- and target-independent arbitrary-precision 42 /// floating-point software implementation. 44 /// APFloat uses bignum integer arithmetic as provided by static functions in 49 /// the front-end of a cross compiler so that target arithmetic can be correctly 52 /// implementation for a run-time library during development of a faster [all …]
|
/external/python/cpython2/Modules/ |
D | mathmodule.c | 1 /* Math module -- standard C math library functions, pi and e */ 6 special values, IEEE-754 floating-point exceptions, and Python 12 large to approximate by a machine float, overflow is signaled and the 16 small to approximate by a machine float, underflow is signaled and the 17 result is a zero (with the appropriate sign). 20 approaches x exists and is an infinity), "divide by zero" is signaled 22 complicated a little by that the left-side and right-side limits may 23 not be the same; e.g., 1/x approaches +inf or -inf as x approaches 0 25 sign of the zero determines the result of 1/0. 36 For #2, return a zero (with the appropriate sign if that happens by [all …]
|
/external/clang/include/clang/Basic/ |
D | Sanitizers.def | 1 //===--- Sanitizers.def - Runtime sanitizer options -------------*- C++ -*-===// 8 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===// 24 // be enabled by specifying -fsanitize=NAME. 45 SANITIZER("kernel-address", KernelAddress) 58 SANITIZER("array-bounds", ArrayBounds) 61 SANITIZER("float-cast-overflow", FloatCastOverflow) 62 SANITIZER("float-divide-by-zero", FloatDivideByZero) 64 SANITIZER("integer-divide-by-zero", IntegerDivideByZero) 65 SANITIZER("nonnull-attribute", NonnullAttribute) [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | APInt.h | 1 //===-- llvm/ADT/APInt.h - For Arbitrary Precision Integer -----*- C++ -*--===// 8 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===// 35 // An unsigned host type used as a single part of a multi-part 43 //===----------------------------------------------------------------------===// 45 //===----------------------------------------------------------------------===// 47 /// APInt - This class represents arbitrary precision constant integral values. 49 /// "unsigned", "unsigned long" or "uint64_t", but also allows non-byte-width 50 /// integer sizes and large integer value types such as 3-bits, 15-bits, or more 51 /// than 64-bits of precision. APInt provides a variety of arithmetic operators [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | APFloat.h | 1 //===- llvm/ADT/APFloat.h - Arbitrary Precision Floating Point ---*- C++ -*-==// 8 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===// 50 lfLessThanHalf, // 0xxxxx x's not all zero 52 lfMoreThanHalf // 1xxxxx x's not all zero 55 /// A self-contained host- and target-independent arbitrary-precision 56 /// floating-point software implementation. 58 /// APFloat uses bignum integer arithmetic as provided by static functions in 63 /// the front-end of a cross compiler so that target arithmetic can be correctly 66 /// implementation for a run-time library during development of a faster [all …]
|
D | APInt.h | 1 //===-- llvm/ADT/APInt.h - For Arbitrary Precision Integer -----*- C++ -*--===// 8 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===// 37 inline APInt operator-(APInt); 39 //===----------------------------------------------------------------------===// 41 //===----------------------------------------------------------------------===// 46 /// "unsigned", "unsigned long" or "uint64_t", but also allows non-byte-width 47 /// integer sizes and large integer value types such as 3-bits, 15-bits, or more 48 /// than 64-bits of precision. APInt provides a variety of arithmetic operators 49 /// and methods to manipulate integer values of any bit-width. It supports both [all …]
|
/external/perfetto/gn/standalone/sanitizers/ |
D | BUILD.gn | 7 # http://www.apache.org/licenses/LICENSE-2.0 9 # Unless required by applicable law or agreed to in writing, software 47 "-fno-omit-frame-pointer", 48 "-fsanitize-blacklist=$blacklist_path_", 53 cflags += [ "-fsanitize=address" ] 57 cflags += [ "-fsanitize=leak" ] 61 cflags += [ "-fsanitize=thread" ] 69 "-fsanitize=memory", 70 "-fsanitize-memory-track-origins=2", 76 "-fsanitize=bounds", [all …]
|
/external/python/cpython3/Modules/ |
D | mathmodule.c | 1 /* Math module -- standard C math library functions, pi and e */ 6 special values, IEEE-754 floating-point exceptions, and Python 12 large to approximate by a machine float, overflow is signaled and the 16 small to approximate by a machine float, underflow is signaled and the 17 result is a zero (with the appropriate sign). 20 approaches x exists and is an infinity), "divide by zero" is signaled 22 complicated a little by that the left-side and right-side limits may 23 not be the same; e.g., 1/x approaches +inf or -inf as x approaches 0 25 sign of the zero determines the result of 1/0. 36 For #2, return a zero (with the appropriate sign if that happens by [all …]
|
/external/skqp/src/core/ |
D | SkPoint3.cpp | 4 * Use of this source code is governed by a BSD-style license that can be 11 static inline float get_length_squared(float x, float y, float z) { in get_length_squared() 16 // *lengthSquared. Returns true if the distance is judged to be "nearly zero". 21 static inline bool is_length_nearly_zero(float x, float y, float z, float *lengthSquared) { in is_length_nearly_zero() 27 float magSq = get_length_squared(x, y, z); in Length() 34 return (float)sqrt(xx * xx + yy * yy + zz * zz); in Length() 47 float magSq; in normalize() 49 this->set(0, 0, 0); in normalize() 60 // divide by inf. and return (0,0,0) vector. in normalize() 66 // using a float instead of a double for scale loses too much precision in normalize() [all …]
|
/external/skia/src/core/ |
D | SkPoint3.cpp | 4 * Use of this source code is governed by a BSD-style license that can be 11 static inline float get_length_squared(float x, float y, float z) { in get_length_squared() 16 // *lengthSquared. Returns true if the distance is judged to be "nearly zero". 21 static inline bool is_length_nearly_zero(float x, float y, float z, float *lengthSquared) { in is_length_nearly_zero() 27 float magSq = get_length_squared(x, y, z); in Length() 34 return (float)sqrt(xx * xx + yy * yy + zz * zz); in Length() 47 float magSq; in normalize() 49 this->set(0, 0, 0); in normalize() 60 // divide by inf. and return (0,0,0) vector. in normalize() 66 // using a float instead of a double for scale loses too much precision in normalize() [all …]
|