Searched refs:round (Results 1 - 25 of 259) sorted by relevance

1234567891011

/macosx-10.9.5/JavaScriptCore-7537.78.1/tests/mozilla/ecma/Math/
H A D15.8.2.15.js24 ECMA Section: 15.8.2.15 Math.round(x)
39 Math.round( 3.5 ) == 4
40 Math.round( -3.5 ) == 3
42 - Math.round(x) == Math.floor( x + 0.5 )
43 except if x = -0. in that case, Math.round(x) = -0
55 var TITLE = "Math.round(x)";
69 array[item++] = new TestCase( SECTION, "Math.round.length", 1, Math.round.length );
71 array[item++] = new TestCase( SECTION, "Math.round()", Number.NaN, Math.round() );
[all...]
/macosx-10.9.5/WebCore-7537.78.1/platform/mac/
H A DThreadCheck.mm65 void setDefaultThreadViolationBehavior(ThreadViolationBehavior behavior, ThreadViolationRound round)
67 ASSERT(round < MaximumThreadViolationRound);
68 if (round >= MaximumThreadViolationRound)
73 threadViolationBehavior[round] = behavior;
76 void reportThreadViolation(const char* function, ThreadViolationRound round)
78 ASSERT(round < MaximumThreadViolationRound);
79 if (round >= MaximumThreadViolationRound)
83 if (threadViolationBehavior[round] == NoThreadCheck)
87 WebCoreReportThreadViolation(function, round);
93 void WebCoreReportThreadViolation(const char* function, WebCore::ThreadViolationRound round)
[all...]
/macosx-10.9.5/ruby-104/ruby/test/
H A Dtest_mathn.rb90 assert_equal( 3, ( 13/5).round)
91 assert_equal( 3, ( 5/2).round)
92 assert_equal( 2, ( 12/5).round)
93 assert_equal(-2, (-12/5).round)
94 assert_equal(-3, ( -5/2).round)
95 assert_equal(-3, (-13/5).round)
97 assert_equal( 3, ( 13/5).round(0))
98 assert_equal( 3, ( 5/2).round(0))
99 assert_equal( 2, ( 12/5).round(0))
100 assert_equal(-2, (-12/5).round(
[all...]
/macosx-10.9.5/ntp-88/libntp/
H A Dtsftomsu.c10 int round
35 if (round && (val_uf & 0x80000000))
/macosx-10.9.5/ksh-20/ksh/src/lib/libast/vmalloc/
H A Dvmmopen.c73 size_t round; /* amount to round to */ member in struct:_mmvm_s
85 static int mmvminit(char* file, Void_t* addr, size_t round, Mmvm_t* mm) argument
87 static int mmvminit(file, addr, round, mm)
90 size_t round; /* amount to round requests */
124 size = (off_t)round;
141 hdr->round = round;
184 ((nsize % disc->round) < (dis
245 vmmopen(char* file, Void_t* base, size_t round) argument
[all...]
/macosx-10.9.5/ruby-104/ruby/test/ruby/
H A Dtest_integer.rb188 assert_equal(11111, 11111.round)
189 assert_equal(Fixnum, 11111.round.class)
190 assert_equal(11111, 11111.round(0))
191 assert_equal(Fixnum, 11111.round(0).class)
193 assert_equal(11111.0, 11111.round(1))
194 assert_equal(Float, 11111.round(1).class)
195 assert_equal(11111.0, 11111.round(2))
196 assert_equal(Float, 11111.round(2).class)
198 assert_equal(11110, 11111.round(-1))
199 assert_equal(Fixnum, 11111.round(
[all...]
H A Dtest_float.rb14 assert_equal(3, 2.6.round)
87 next if flt2 == flt2.round
358 assert_equal(2, 1.5.round)
363 assert_equal(2, 2.0.round)
368 assert_equal(-2, (-1.5).round)
373 assert_equal(-2, (-2.0).round)
379 assert_raise(FloatDomainError) { inf.round }
384 assert_equal(1.100, 1.111.round(1))
385 assert_equal(1.110, 1.111.round(2))
386 assert_equal(11110.0, 11111.1.round(
[all...]
/macosx-10.9.5/WebCore-7537.78.1/platform/audio/
H A DAudioUtilities.cpp59 return static_cast<size_t>(round(time * sampleRate));
/macosx-10.9.5/CPANInternal-140/Perl4-CoreLibs-0.003/lib/
H A Dbigfloat.pl42 # fround(NSTR, SCALE) return NSTR round to SCALE digits
43 # ffround(NSTR, SCALE) return NSTR round at SCALEth place
145 &norm(&round(&'bdiv($xm.('0' x $scale),$ym),&'babs($ym)),
151 # round int $q based on fraction $r/$base using $rnd_mode
152 sub round { #(int_str, int_str, int_str) return int_str
167 $q; # round down
170 # round up
175 # round the mantissa of $x to $scale digits
185 &norm(&round(substr($xm,0,$scale+1),
193 # round
149 sub round { #(int_str, int_str, int_str) return int_str subroutine
[all...]
/macosx-10.9.5/tcl-102/tcl_ext/tclx/tclx/library/
H A Dfmath.tcl21 sin sinh sqrt tan tanh fmod pow atan2 abs double int round
49 proc round x {uplevel 1 [list expr round($x)]} procedure
/macosx-10.9.5/ruby-104/ruby/test/bigdecimal/
H A Dtest_bigdecimal.rb312 assert_equal(3, n2h.round)
313 assert_equal(4, n3h.round)
314 assert_equal(-3, m2h.round)
315 assert_equal(-4, m3h.round)
324 assert_equal(2, n2h.round)
325 assert_equal(3, n3h.round)
326 assert_equal(-2, m2h.round)
327 assert_equal(-3, m3h.round)
336 assert_equal(3, n2h.round)
337 assert_equal(4, n3h.round)
[all...]
/macosx-10.9.5/IOAudioFamily-197.4.2/PCMBlitterLib/
H A DIOAudioBlitterLib.c55 double round = 128.0; local
56 double max32 = maxInt32 - 1.0 - round;
64 double f1 = src[0] * maxInt32 + round;
65 double f2 = src[1] * maxInt32 + round;
66 double f3 = src[2] * maxInt32 + round;
67 double f4 = src[3] * maxInt32 + round;
111 double f1 = *src++ * maxInt32 + round;
H A DIOAudioBlitterLib.h83 /* Set the FPSCR to round to -Inf mode */ \
95 /* in the integer unit. These two bits set to zero means round to nearest mode. */ \
365 double round = mRound; local
366 double max32 = maxInt32 - 1.0 - round;
378 f1 = f1 * maxInt32 + round;
381 f2 = f2 * maxInt32 + round;
392 f3 = f3 * maxInt32 + round;
397 f4 = f4 * maxInt32 + round;
402 f1 = f1 * maxInt32 + round;
407 f2 = f2 * maxInt32 + round;
[all...]
/macosx-10.9.5/CPANInternal-140/Log-Log4perl/lib/Log/Log4perl/Appender/
H A DRRDs.pm84 to RRDtool round-robin archives via Log4perl. For documentation
90 on an existing round-robin database. The name of this database needs to
98 To read out the round robin database later on, use C<rrdtool fetch>
/macosx-10.9.5/ksh-20/ksh/src/cmd/ksh93/sh/
H A Dstreval.c58 #define round(x,size) (((x)+(size)-1)&~((size)-1)) macro
59 #define stakpush(v,val,type) ((((v)->offset=round(staktell(),pow2size(sizeof(type)))),\
62 #define roundptr(ep,cp,type) (((unsigned char*)(ep))+round(cp-((unsigned char*)(ep)),pow2size(sizeof(type))))
/macosx-10.9.5/ICU-511.35/icuSources/test/intltest/
H A Ddcfmtest.h53 const UnicodeString &round,
H A Ddcfmtest.cpp377 const UnicodeString &round, // rounding mode
394 if (round=="ceiling") {
396 } else if (round=="floor") {
398 } else if (round=="down") {
400 } else if (round=="up") {
402 } else if (round=="halfeven") {
404 } else if (round=="halfdown") {
406 } else if (round=="halfup") {
408 } else if (round=="default") {
410 } else if (round
375 execFormatTest(int32_t lineNum, const UnicodeString &pattern, const UnicodeString &round, const UnicodeString &input, const UnicodeString &expected, EFormatInputType inType, UErrorCode &status) argument
[all...]
/macosx-10.9.5/WebCore-7537.78.1/html/
H A DStepRange.cpp123 step = max(step.round(), Decimal(1));
129 step = max(step.round(), Decimal(1));
141 return base + ((value - base) / m_step).round() * m_step;
162 const Decimal remainder = (value - m_step * (value / m_step).round()).abs();
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/
H A DLayoutRect.h80 int pixelSnappedX() const { return x().round(); }
81 int pixelSnappedY() const { return y().round(); }
84 int pixelSnappedMaxX() const { return (m_location.x() + m_size.width()).round(); }
85 int pixelSnappedMaxY() const { return (m_location.y() + m_size.height()).round(); }
175 // Return a rect that is slightly smaller than the true max rect to allow pixelSnapping to round up to the nearest IntRect without overflowing.
233 return IntRect(left.round(), top.round(), snapSizeToPixel(width, left), snapSizeToPixel(height, top));
238 return IntRect(left.round(), top.round(), snapSizeToPixel(right - left, left), snapSizeToPixel(bottom - top, top));
H A DImageBuffer.cpp56 linearRgbLUT.append(static_cast<int>(round(color * 255)));
67 deviceRgbLUT.append(static_cast<int>(round(color * 255)));
H A DLayoutPoint.h172 return IntPoint(point.x().round(), point.y().round());
177 return IntPoint(size.width().round(), size.height().round());
/macosx-10.9.5/ICU-511.35/icuSources/i18n/
H A DdecContext.c68 context->round=DEC_ROUND_HALF_UP; /* 0.5 rises */
83 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */
94 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */
105 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */
129 return context->round;
188 context->round=newround;
/macosx-10.9.5/vim-53/src/
H A Dpopupmnu.c282 int round; local
316 for (round = 1; round <= 3; ++round)
320 switch (round)
420 if (round > 1)
426 if (round == 3
427 || (round == 2 && pum_array[idx].pum_extra == NULL)
428 || (round == 1 && pum_array[idx].pum_kind == NULL
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/gpu/opencl/
H A DFilterContextOpenCL.cpp158 pixel = (float4) (clLookUpTable[(int)(round(pixel.x * 255))], clLookUpTable[(int)(round(pixel.y * 255))],
159 clLookUpTable[(int) (round(pixel.z * 255))], pixel.w);
208 lookUpTable.append((round(color * 255)) / 255);
221 lookUpTable.append((round(color * 255)) / 255);
/macosx-10.9.5/ruby-104/ruby/lib/
H A Dmathn.rb79 if self < 0 && other.round != other
108 if self < 0 && other.round != other
317 if self < 0 && other.round != other

Completed in 266 milliseconds

1234567891011