Searched refs:floor (Results 1 - 25 of 325) sorted by relevance

1234567891011>>

/macosx-10.10/JavaScriptCore-7600.1.17/tests/mozilla/ecma/Math/
H A D15.8.2.9.js24 ECMA Section: 15.8.2.9 Math.floor(x)
36 - the value of Math.floor(x) == -Math.ceil(-x)
44 var TITLE = "Math.floor(x)";
55 array[item++] = new TestCase( SECTION, "Math.floor.length", 1, Math.floor.length );
57 array[item++] = new TestCase( SECTION, "Math.floor()", Number.NaN, Math.floor() );
58 array[item++] = new TestCase( SECTION, "Math.floor(void 0)", Number.NaN, Math.floor(void 0) );
59 array[item++] = new TestCase( SECTION, "Math.floor(nul
[all...]
H A D15.8.2.6.js83 array[item++] = new TestCase( SECTION, "Math.ceil(Infinity)", -Math.floor(-Infinity), Math.ceil(Number.POSITIVE_INFINITY) );
84 array[item++] = new TestCase( SECTION, "Math.ceil(-Infinity)", -Math.floor(Infinity), Math.ceil(Number.NEGATIVE_INFINITY) );
85 array[item++] = new TestCase( SECTION, "Math.ceil(-Number.MIN_VALUE)", -Math.floor(Number.MIN_VALUE), Math.ceil(-Number.MIN_VALUE) );
86 array[item++] = new TestCase( SECTION, "Math.ceil(1)", -Math.floor(-1), Math.ceil(1) );
87 array[item++] = new TestCase( SECTION, "Math.ceil(-1)", -Math.floor(1), Math.ceil(-1) );
88 array[item++] = new TestCase( SECTION, "Math.ceil(-0.9)", -Math.floor(0.9), Math.ceil(-0.9) );
89 array[item++] = new TestCase( SECTION, "Math.ceil(0.9 )", -Math.floor(-0.9), Math.ceil( 0.9) );
90 array[item++] = new TestCase( SECTION, "Math.ceil(-1.1)", -Math.floor(1.1), Math.ceil( -1.1));
91 array[item++] = new TestCase( SECTION, "Math.ceil( 1.1)", -Math.floor(-1.1), Math.ceil( 1.1));
/macosx-10.10/ruby-106/ruby/test/
H A Dtest_mathn.rb15 assert_equal( 2, ( 13/5).floor)
16 assert_equal( 2, ( 5/2).floor)
17 assert_equal( 2, ( 12/5).floor)
18 assert_equal(-3, (-12/5).floor)
19 assert_equal(-3, ( -5/2).floor)
20 assert_equal(-3, (-13/5).floor)
22 assert_equal( 2, ( 13/5).floor(0))
23 assert_equal( 2, ( 5/2).floor(0))
24 assert_equal( 2, ( 12/5).floor(0))
25 assert_equal(-3, (-12/5).floor(
[all...]
/macosx-10.10/dcerpc-61/dcerpc/ncklib/
H A Dcomtwrflr.c113 ** Frees the tower floor.
119 ** floor The tower floor to be freed.
123 ** status Returns the status code from the floor free
143 rpc_tower_floor_p_t *floor,
150 * Free the tower floor, freeing the octet string associated
151 * with the each floor only if the free flag is set.
153 if ((*floor)->free_twr_octet_flag)
155 RPC_MEM_FREE ((*floor)->octet_string,
159 RPC_MEM_FREE (*floor, RPC_C_MEM_TOWER_FLOO
140 rpc__tower_flr_free( rpc_tower_floor_p_t *floor, unsigned32 *status ) argument
208 rpc__tower_flr_from_drep( rpc_syntax_id_p_t transfer_syntax, rpc_tower_floor_p_t *floor, unsigned32 *status ) argument
272 rpc__tower_flr_from_if_id( rpc_if_id_p_t if_id, rpc_tower_floor_p_t *floor, unsigned32 *status ) argument
342 rpc__tower_flr_from_rpc_prot_id( rpc_protseq_id_t rpc_protseq_id, rpc_protocol_version_p_t protocol_version, rpc_tower_floor_p_t *floor, unsigned32 *status ) argument
505 rpc__tower_flr_from_uuid( uuid_p_t uuid, unsigned32 version_major, unsigned32 version_minor, rpc_tower_floor_p_t *floor, unsigned32 *status ) argument
858 rpc__tower_flr_to_drep( rpc_tower_floor_p_t floor, rpc_syntax_id_t *transfer_syntax, unsigned32 *status ) argument
929 rpc__tower_flr_to_if_id( rpc_tower_floor_p_t floor, rpc_if_id_t *if_id, unsigned32 *status ) argument
1002 rpc__tower_flr_to_rpc_prot_id( rpc_tower_floor_p_t floor, rpc_protocol_id_t *rpc_protocol_id, unsigned32 *version_major, unsigned32 *version_minor, unsigned32 *status ) argument
1152 rpc__tower_flr_to_uuid( rpc_tower_floor_p_t floor, idl_uuid_t *uuid, unsigned32 *version_major, unsigned32 *version_minor, unsigned32 *status ) argument
[all...]
H A Dcomtwrref.c102 #include <comtwrflr.h> /* Privates for the Tower floor services */
114 ** Adds a floor to a tower reference.
117 ** floor_number The number of the floor to add to the tower.
118 ** floor The tower floor to add to the tower.
119 ** tower_ref The tower to which the floor is added.
125 ** status Returns the status code from the tower add floor
145 rpc_tower_floor_p_t floor,
154 * If we're replacing the floor, free it first.
156 if (tower_ref->floor[floor_numbe
141 rpc__tower_ref_add_floor( unsigned32 floor_number, rpc_tower_floor_p_t floor, rpc_tower_ref_t *tower_ref, unsigned32 *status ) argument
[all...]
H A Dcomtwr.c220 octet_length += (tower_ref->floor[i]->prot_id_count +
222 tower_ref->floor[i]->address_count +
245 * with the tower floor count size.
261 * And now copy each tower floor to the octet string.
267 tower_ref->floor[i]->prot_id_count +
269 tower_ref->floor[i]->address_count;
271 memcpy ((char *)tower_p, (char *)tower_ref->floor[i]->octet_string,
334 * Get the tower floor count and correct for proper endian.
/macosx-10.10/ksh-23/ksh/src/lib/libast/uwin/
H A Drint.c35 double d = floor((x+=.5));
36 if(d==x && d/2.!=floor(d/2))
/macosx-10.10/groff-38/groff/src/libs/libgroff/
H A Dfmod.c26 return x - (quot < 0.0 ? ceil(quot) : floor(quot)) * y;
/macosx-10.10/emacs-93/emacs/lisp/calendar/
H A Dcal-persia.el75 (* 1029983 (floor year 2820)))
79 (floor (+ year 2345) 2820))
81 (floor (mod (+ year 2345) 2820) 768))
82 (floor; Leap years in current 768 or 516 year cycle
96 (floor d0 1029983))
100 (floor d1 280506))
105 ; (floor (+ (* 2820 d2) (* 2820 366)) 1029983))
107 (let ((a (floor d2 366)); we use 366 as the divisor because
110 (+ 1 a (floor (+ (* 2137 a) (* 2820 b) 2137) 1029983))))
/macosx-10.10/JavaScriptCore-7600.1.17/tests/mozilla/ecma_2/Statements/
H A Dtry-008.js39 if ( Math.floor(value) != value || isNaN(value) ) {
H A Dtry-001.js45 if ( Math.floor(value) != value || isNaN(value) ) {
/macosx-10.10/pyobjc-45/2.5/pyobjc/pyobjc-framework-Quartz/Examples/Programming with Quartz/BasicDrawing/
H A DPathDrawing.py135 p.x = math.floor(p.x)
136 p.y = math.floor(p.y)
144 s.width = math.floor(s.width)
145 s.height = math.floor(s.height)
153 r.origin.x = math.floor(r.origin.x)
154 r.origin.y = math.floor(r.origin.y)
160 r.size.width = math.floor(r.size.width)
161 r.size.height = math.floor(r.size.height)
/macosx-10.10/pyobjc-45/2.6/pyobjc/pyobjc-framework-Quartz/Examples/Programming with Quartz/BasicDrawing/
H A DPathDrawing.py135 p.x = math.floor(p.x)
136 p.y = math.floor(p.y)
144 s.width = math.floor(s.width)
145 s.height = math.floor(s.height)
153 r.origin.x = math.floor(r.origin.x)
154 r.origin.y = math.floor(r.origin.y)
160 r.size.width = math.floor(r.size.width)
161 r.size.height = math.floor(r.size.height)
/macosx-10.10/pyobjc-45/pyobjc/pyobjc-framework-Quartz-2.5.1/Examples/Programming with Quartz/BasicDrawing/
H A DPathDrawing.py135 p.x = math.floor(p.x)
136 p.y = math.floor(p.y)
144 s.width = math.floor(s.width)
145 s.height = math.floor(s.height)
153 r.origin.x = math.floor(r.origin.x)
154 r.origin.y = math.floor(r.origin.y)
160 r.size.width = math.floor(r.size.width)
161 r.size.height = math.floor(r.size.height)
/macosx-10.10/swig-12/Lib/
H A Dmath.i66 extern double floor(double x);
/macosx-10.10/tcl-105/tcl_ext/ffidl/ffidl/demos/mathswig/
H A Dmathswig.i43 double floor(double);
H A Dtime-libm.tcl74 ::ffidl::callout ffifloor {double} double [::ffidl::symbol $lib floor]
75 if { ! $nodll} {::dll::declare $lib floor dllfloor d d}
76 if { ! $nodll} {set t [time {dllfloor $a} 10000]; puts "time for dll floor: $t"}
77 if { ! $noswig} {set t [time {floor $a} 10000]; puts "time for swig floor: $t"}
78 set t [time {ffifloor $a} 10000]; puts "time for ffidl floor: $t"
79 set t [time {expr {floor($a)}} 10000]; puts "time for expr floor: $t"
/macosx-10.10/JavaScriptCore-7600.1.17/runtime/
H A DUint16WithFraction.h54 double integerPart = floor(number);
159 // Return the floor (non-fractional portion) of the number, clearing this to zero,
163 // 'floor' is simple the integer portion of the value.
164 uint32_t floor = m_values[0]; local
166 // If floor is non-zero,
167 if (floor) {
174 return floor;
/macosx-10.10/JavaScriptCore-7600.1.17/tests/mozilla/ecma/Expressions/
H A D11.4.8.js89 return ( sign * Math.floor(Math.abs(n)) );
99 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32);
111 n = sign * Math.floor( Math.abs(n) )
128 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
H A D11.7.1.js96 return ( sign * Math.floor(Math.abs(n)) );
106 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32);
118 n = sign * Math.floor( Math.abs(n) )
135 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
H A D11.7.2.js110 return ( sign * Math.floor(Math.abs(n)) );
120 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32);
132 n = sign * Math.floor( Math.abs(n) )
149 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
H A D11.7.3.js101 return ( sign * Math.floor(Math.abs(n)) );
111 n = (sign * Math.floor( Math.abs(n) )) % Math.pow(2,32);
123 n = sign * Math.floor( Math.abs(n) )
140 n = ( sign * Math.floor( Math.abs(n) ) ) % Math.pow(2,16);
/macosx-10.10/dcerpc-61/dcerpc/rpcd/
H A Drpcdutil.c162 rpc__tower_flr_to_if_id(tref->floor[0], &tfp->interface, status);
165 rpc__tower_flr_to_drep(tref->floor[1], &tfp->data_rep, status);
168 rpc__tower_flr_to_rpc_prot_id(tref->floor[2],
207 rpc__tower_flr_to_if_id(tref->floor[0], if_id, status);
/macosx-10.10/JavaScriptCore-7600.1.17/tests/mozilla/ecma/Date/
H A D15.9.4.2.js180 testcases[item++] = new TestCase( SECTION, "Date.parse(" + DateCase.toString() +")", Math.floor(ResultArray[TIME]/1000)*1000, Date.parse(DateCase.toString()) );
181 testcases[item++] = new TestCase( SECTION, "Date.parse(" + DateCase.toGMTString() +")", Math.floor(ResultArray[TIME]/1000)*1000, Date.parse(DateCase.toGMTString()) );
/macosx-10.10/JavaScriptCore-7600.1.17/tests/mozilla/ecma/GlobalObject/
H A D15.1.2.5-2.js136 hex[index] = Math.floor( n / Math.pow(16,mag) );
137 n -= Math.pow(16,mag) * Math.floor( n/Math.pow(16,mag) );

Completed in 212 milliseconds

1234567891011>>