HomeSort by: relevance | last modified time | path
    Searched refs:floor (Results 1 - 25 of 36) sorted by relevancy

1 2

  /src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dml/
amdgpu_dml_common_defs.c 40 double floor = dml_floor(a, 1); local in function:dml_round
42 if (a - floor >= round_pt)
45 return floor;
  /src/games/phantasia/
macros.h 7 #define ROLL(BASE,INTERVAL) floor((BASE) + (INTERVAL) * drandom())
9 #define CIRCLE(X, Y) floor(distance(X, 0.0, Y, 0.0) / 125.0 + 1)
misc.c 232 Menu[0].cost, floor(Player.p_gold / Menu[0].cost));
233 cost = (numitems = floor(infloat())) * Menu[0].cost;
249 Menu[1].cost, floor(Player.p_gold / Menu[1].cost));
250 cost = (numitems = floor(infloat())) * Menu[1].cost;
272 Menu[2].cost, floor(Player.p_gold / Menu[2].cost));
273 cost = (numitems = floor(infloat())) * Menu[2].cost;
288 Player.p_brains += floor(numitems) * ROLL(20, 8);
295 Menu[3].cost, floor(Player.p_gold / Menu[3].cost));
296 cost = (numitems = floor(infloat())) * Menu[3].cost;
318 Menu[4].cost, floor(Player.p_gold / Menu[4].cost))
    [all...]
interplayer.c 356 Player.p_1scratch = floor(Player.p_1scratch); /* clean up any mess */
418 Player.p_gold = floor(Player.p_gold / 1.25) + 0.1;
708 Enrgyvoid.ev_x = floor(temp1);
709 Enrgyvoid.ev_y = floor(temp2);
741 Player.p_gold += floor(temp1);
855 Player.p_gold -= floor(temp1);
860 Other.p_1scratch = floor(temp1);
861 Other.p_2scratch = floor(temp2);
fight.c 300 Player.p_experience += floor(Curmonster.m_experience / 10.0);
454 inflict = MIN(Player.p_mana, floor(inflict));
578 floor((Curmonster.m_o_energy - Curmonster.m_energy) / 2.0);
720 dtemp = floor(infloat());
  /src/lib/libm/src/
s_round.c 53 t = floor(x);
59 t = floor(x);
w_gamma.c 37 if(floor(x)==x&&x<=0.0)
w_gamma_r.c 35 if(floor(x)==x&&x<=0.0)
w_lgamma.c 37 if(floor(x)==x&&x<=0.0)
w_lgamma_r.c 35 if(floor(x)==x&&x<=0.0)
s_floor.c 19 * floor(x)
24 * Inexact flag raised if x not equal to floor(x).
31 __strong_alias(_floorl, floor)
32 __weak_alias(floorl, floor)
38 floor(double x) function in typeref:typename:double
e_lgamma_r.c 174 z = floor(y);
177 y = 2.0*(y - floor(y)); /* y = |x| mod 2.0 */
  /src/lib/libm/arch/m68k/
s_floor.S 39 ;.asciz "from: @(#)floor.s 5.1 (Berkeley) 5/17/90"
43 | floor(x)
45 ENTRY(floor) function
  /src/lib/libm/noieee_src/
n_floor.c 33 static char sccsid[] = "@(#)floor.c 8.1 (Berkeley) 6/4/93";
49 __weak_alias(floorl, floor)
54 * floor(x) := the largest integer no larger than x;
55 * ceil(x) := -floor(-x), for all real x.
61 floor(double x)
83 return floor((double)x);
98 return -floor(-x);
232 return x < 0 ? ceil(x) : floor(x);
  /src/lib/libm/arch/i387/
s_floor.S 10 ENTRY(floor) function
  /src/usr.bin/lastcomm/
lastcomm.c 148 floor(delta / SECSPERHOUR),
149 floor(fmod(delta, SECSPERHOUR) / SECSPERMIN),
  /src/tests/lib/lua/libm/
h_lualibm.c 52 TEST(floor(M_PI));
53 TEST(floor(M_E));
lualibm.lua 58 test("floor(M_PI)", lm.floor(lm.M_PI))
59 test("floor(M_E)", lm.floor(lm.M_E))
  /src/tests/lib/libm/
t_ceil.c 319 * floor(3)
324 atf_tc_set_md_var(tc, "descr", "A basic test of floor(3)");
332 ATF_CHECK(floor(x) < SMALL_NUM);
333 ATF_CHECK(floor(y) < SMALL_NUM);
339 atf_tc_set_md_var(tc, "descr", "Test floor(NaN) == NaN");
346 ATF_CHECK(isnan(floor(x)) != 0);
352 atf_tc_set_md_var(tc, "descr", "Test floor(-Inf) == -Inf");
358 double y = floor(x);
361 atf_tc_fail_nonfatal("floor(-Inf) != -Inf");
367 atf_tc_set_md_var(tc, "descr", "Test floor(+Inf) == +Inf")
    [all...]
  /src/bin/sleep/
sleep.c 141 ival = floor(val);
  /src/usr.bin/seq/
seq.c 493 last = first - incr * floor((first - last) / incr);
495 last = first + incr * floor((last - first) / incr);
  /src/include/
tgmath.h 158 #define floor(a) __TG_FN1(floor, (a)) macro
  /src/usr.bin/systat/
bufcache.c 227 pgwidth = (int)(floor(log10((double)uvmexp.npages)) + 1);
228 kbwidth = (int)(floor(log10(uvmexp.npages * getpagesize() / 1024.0)) +
  /src/usr.bin/jot/
jot.c 124 * and use floor(x) later to get sane rounding.
309 printf(format, (long)floor(x));
  /src/lib/lua/libm/
libm.c 127 DFUNC_DBL(floor)
263 { "floor", libm_floor },

Completed in 148 milliseconds

1 2