/external/clang/test/CodeGen/ |
uint128_t.c | 5 extern uint64_t denom; 14 tmp /= denom;
|
/external/skia/src/core/ |
Sk64.cpp | 208 void Sk64::div(int32_t denom, DivOptions option) 210 SkASSERT(denom); 214 int sign = denom ^ hi; 216 denom = SkAbs32(denom); 223 if (option == kRound_DivOption) // add denom/2 225 uint32_t newLo = lo + (denom >> 1); 232 if (lo < (uint32_t)denom) 236 this->set(0, lo / denom); 246 int dbits = SkCLZ(denom); [all...] |
SkMath.cpp | 77 int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom) { 78 SkASSERT(denom); 82 tmp.div(denom, Sk64::kTrunc_DivOption); 263 if ((numer = (numer << 1) - denom) >= 0) \ 264 result |= 1 << (n - 1); else numer += denom 266 int32_t SkDivBits(int32_t numer, int32_t denom, int shift_bias) { 267 SkASSERT(denom != 0); 272 // make numer and denom positive, and sign hold the resulting sign 273 int32_t sign = SkExtractSign(numer ^ denom); 275 denom = SkAbs32(denom) [all...] |
SkMatrix.cpp | 266 static inline SkFixed roundidiv(SkFixed numer, int denom) { 268 int ds = denom >> 31; 270 denom = (denom ^ ds) - ds; 272 SkFixed answer = (numer + (denom >> 1)) / denom; 745 SkFixed denom; local 747 denom = tmp1.getShiftRight(33 - s); 749 denom = (int32_t)tmp1.fLo << (s - 33); 752 if (denom == 0) 1397 SkFixed denom = SkMulDiv(x1, y2, x2) - y1; local 1403 SkFixed denom = x1 - SkMulDiv(y1, x2, y2); local 1412 SkFixed denom = y2 - SkMulDiv(x2, y1, x1); local 1418 SkFixed denom = SkMulDiv(y2, x1, y1) - x2; local 1530 float denom = SkScalarMulDiv(x1, y2, x2) - y1; local 1536 float denom = x1 - SkScalarMulDiv(y1, x2, y2); local 1545 float denom = y2 - SkScalarMulDiv(x2, y1, x1); local 1551 float denom = SkScalarMulDiv(y2, x1, y1) - x2; local [all...] |
SkColor.cpp | 53 static inline SkScalar ByteDivToScalar(int numer, U8CPU denom) { 55 return SkIntToScalar(numer) / (int)denom;
|
/bionic/libc/stdlib/ |
ldiv.c | 37 ldiv(long num, long denom) 43 r.quot = num / denom; 44 r.rem = num % denom; 47 r.rem -= denom;
|
lldiv.c | 37 lldiv(long long num, long long denom) 43 r.quot = num / denom; 44 r.rem = num % denom; 47 r.rem -= denom;
|
div.c | 37 div(int num, int denom) 41 r.quot = num / denom; 42 r.rem = num % denom; 52 * r.rem will have the same sign as denom and the opposite 58 * If both are num and denom are positive, r will always 64 * subtract denom from r.rem. 68 r.rem -= denom;
|
/frameworks/compile/libbcc/runtime/test/timing/ |
timing.h | 23 conversion = (double) freq * (1e-9 * (double) info.numer / (double) info.denom);
|
/external/skia/tests/ |
Sk64Test.cpp | 150 int32_t denom = rand.nextS(); local 152 while (denom == 0) 153 denom = rand.nextS(); 157 wide.div(denom, Sk64::kTrunc_DivOption); 158 check /= denom; 166 denom = wide.getSqrt(); 168 int diff = denom - ck; 188 SkDebugf(" %d === numer %g denom %g div %g xdiv %x fxdiv %x\n",
|
MathTest.cpp | 384 SkFixed denom = rand.nextS(); local 385 SkFixed result = SkFixedDiv(numer, denom); 386 SkLONGLONG check = ((SkLONGLONG)numer << 16) / denom; 389 (void)SkCLZ(denom); 399 result = SkFractDiv(numer, denom); 400 check = ((SkLONGLONG)numer << 30) / denom; 412 denom = denom << 8 >> 8; 414 result = SkFixedMul(numer, denom); 415 SkFixed r2 = symmetric_fixmul(numer, denom); [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
DivZeroChecker.cpp | 45 SVal Denom = C.getState()->getSVal(B->getRHS()); 46 const DefinedSVal *DV = dyn_cast<DefinedSVal>(&Denom); 74 // If we get here, then the denom should not be zero. We abandon the implicit 75 // zero denom case for now.
|
/external/chromium/base/ |
time_mac.cc | 108 if (timebase_info.denom == 0) { 109 // Zero-initialization of statics guarantees that denom will be 0 before 110 // calling mach_timebase_info. mach_timebase_info will never set denom to 125 timebase_info.numer / timebase_info.denom; 128 // With numer and denom = 1 (the expected case), the 64-bit absolute time
|
/external/skia/include/core/ |
SkFixed.h | 131 #define SkFixedDiv(numer, denom) SkDivBits(numer, denom, 16) 132 SkFixed SkFixedDivInt(int32_t numer, int32_t denom); 133 SkFixed SkFixedMod(SkFixed numer, SkFixed denom); 140 #define SkFractDiv(numer, denom) SkDivBits(numer, denom, 30)
|
SkMath.h | 31 /** Computes numer1 * numer2 / denom in full 64 intermediate precision. 32 It is an error for denom to be 0. There is no special handling if 35 int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom); 37 /** Computes (numer1 << shift) / denom in full 64 intermediate precision. 38 It is an error for denom to be 0. There is no special handling if 41 int32_t SkDivBits(int32_t numer, int32_t denom, int shift);
|
Sk64.h | 204 /** Return the result of dividing the number by denom, treating the answer 205 as a SkFixed. (*this) << 16 / denom. It is an error for denom to be 0. 207 SkFixed getFixedDiv(const Sk64& denom) const;
|
/external/mesa3d/include/c99/ |
inttypes.h | 280 imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) 284 result.quot = numer / denom; 285 result.rem = numer % denom; 290 result.rem -= denom;
|
/external/skia/bench/ |
BenchSysTimer_mach.cpp | 66 / sTimebaseInfo.denom;
|
/external/webrtc/src/modules/audio_processing/aec/main/source/ |
resampler.c | 180 float denom = 0; local 227 denom = x2 - xAvg*x; 229 if (denom != 0) { 230 skew = (xy - xAvg*y) / denom;
|
/frameworks/compile/libbcc/runtime/lib/ppc/ |
divtc3.c | 41 const long double denom = __gcc_qadd(__gcc_qmul(cDD.ld, cDD.ld), __gcc_qmul(dDD.ld, dDD.ld)); local 45 DD real = { .ld = __gcc_qdiv(realNumerator, denom) }; 46 DD imag = { .ld = __gcc_qdiv(imagNumerator, denom) }; 57 DD rDD = { .ld = denom };
|
/external/quake/quake/src/QW/client/ |
mathlib.c | 493 numer and denom, both of which should contain no fractional part. The 498 void FloorDivMod (double numer, double denom, int *quotient, 505 if (denom <= 0.0) 506 Sys_Error ("FloorDivMod: bad denominator %d\n", denom); 508 // if ((floor(numer) != numer) || (floor(denom) != denom)) 509 // Sys_Error ("FloorDivMod: non-integer numer or denom %f %f\n", 510 // numer, denom); 516 x = floor(numer / denom); 518 r = (int)floor(numer - (x * denom)); [all...] |
/external/quake/quake/src/WinQuake/ |
mathlib.cpp | 495 numer and denom, both of which should contain no fractional part. The
500 void FloorDivMod (double numer, double denom, int *quotient,
507 if (denom <= 0.0)
508 Sys_Error ("FloorDivMod: bad denominator %d\n", denom);
510 // if ((floor(numer) != numer) || (floor(denom) != denom))
511 // Sys_Error ("FloorDivMod: non-integer numer or denom %f %f\n",
512 // numer, denom);
518 x = floor(numer / denom);
520 r = (int)floor(numer - (x * denom));
[all...] |
/frameworks/base/media/libstagefright/codecs/aacenc/basic_op/ |
oper_32b.h | 39 Word32 Div_32 (Word32 L_num, Word32 denom);
|
/external/libvpx/vpx_mem/memory_manager/include/ |
hmm_intrnl.h | 61 #define DIV_ROUND_UP(NUMER, DENOM) (((NUMER) + (DENOM) - 1) / (DENOM))
|
/external/skia/src/effects/ |
SkEmbossMask.cpp | 123 if (numer > 0) { // preflight when numer/denom will be <= 0 125 int denom = SkSqrt32(nx * nx + ny * ny + kDelta*kDelta); 126 SkFixed dot = numer / denom;
|