Searched refs:abs (Results 1 - 25 of 47) sorted by relevance

12

/seL4-refos-master/libs/libmuslc/src/stdlib/
H A Dabs.c1 int abs(int a) function
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/
H A Damiconf.h8 #undef abs /* avoid using macro form of abs */ macro
H A Dsystem.h245 # ifndef abs
246 E int FDECL(abs, (int));
537 # ifdef abs
538 # undef abs macro
540 E int FDECL(abs, (int));
/seL4-refos-master/projects/refos/impl/apps/test_user/src/
H A Dtest_user.c142 test_assert(abs(sin(3.4) - 0.25554110202) < eps);
143 test_assert(abs(cosh(0.4) - 1.08107237184) < eps);
144 test_assert(abs(tan(0.75) - 0.93159645994) < eps);
145 test_assert(abs(floor(313.421326) - 313.0) < eps);
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/
H A Damiconf.h8 #undef abs /* avoid using macro form of abs */ macro
H A Dsystem.h245 # ifndef abs
246 E int FDECL(abs, (int));
537 # ifdef abs
538 # undef abs macro
540 E int FDECL(abs, (int));
/seL4-refos-master/apps/test_user/src/
H A Dtest_user.c142 test_assert(abs(sin(3.4) - 0.25554110202) < eps);
143 test_assert(abs(cosh(0.4) - 1.08107237184) < eps);
144 test_assert(abs(tan(0.75) - 0.93159645994) < eps);
145 test_assert(abs(floor(313.421326) - 313.0) < eps);
/seL4-refos-master/libs/libmuslc/include/
H A Dstdlib.h58 int abs (int);
/seL4-refos-master/libs/libvterm/src/
H A Dvterm.c229 if(abs(downward) >= rect.end_row - rect.start_row ||
230 abs(rightward) >= rect.end_col - rect.start_col) {
/seL4-refos-master/projects/refos/impl/libs/libvterm/src/
H A Dvterm.c229 if(abs(downward) >= rect.end_row - rect.start_row ||
230 abs(rightward) >= rect.end_col - rect.start_col) {
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dvault.c208 if(abs(gx-x) >= abs(gy-y))
481 if(abs(egrd->ogx - grd->mx) > 1 ||
482 abs(egrd->ogy - grd->my) > 1)
663 if(abs(gx-x) >= abs(gy-y)) nx += dx; else ny += dy;
H A Dattrib.c275 if(abs(AEXE(i)) < AVAL) {
407 if(rn2(AVAL) > ((i != A_WIS) ? abs(AEXE(i)*2/3) : abs(AEXE(i))))
H A Dmakemon.c1183 case AM_NEUTRAL: alshift = (20 - abs(ptr->maligntyp))/ALIGNWEIGHT;
1593 !!rn2(2 + abs(mal))));
1634 int absmal = abs(mal);
1640 int absmal = abs(mal);
1646 int absmal = abs(mal);
1652 mtmp->malign = abs(mal);
H A Dcmd.c811 int absamt = abs(incamt);
1048 ltmp = abs((int)Luck);
2231 if (abs(x) <= 1 && abs(y) <= 1 ) {
2290 if(x > 2*abs(y))
2292 else if(y > 2*abs(x))
2294 else if(x < -2*abs(y))
2296 else if(y < -2*abs(x))
H A Dzap.c2904 register int abstype = abs(type) % 10;
2966 if(abs(type) != ZT_BREATH(ZT_DEATH)) { /* death */
3075 switch (abs(type) % 10) {
3119 if (abs(type) == ZT_BREATH(ZT_DEATH)) {
3278 int range, abstype = abs(type) % 10;
3291 fltxt = flash_types[(type <= -30) ? abstype : abs(type)];
3358 if (is_rider(mon->data) && abs(type) == ZT_BREATH(ZT_DEATH)) {
3572 int abstype = abs(type) % 10;
3691 if(abs(type) != ZT_BREATH(ZT_DEATH))
3707 abs(typ
[all...]
H A Dlight.c175 offset = limits[abs(y - ls->y)];
H A Dmthrowu.c712 if((!tbx || !tby || abs(tbx) == abs(tby)) /* straight line or diagonal */
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dvault.c208 if(abs(gx-x) >= abs(gy-y))
481 if(abs(egrd->ogx - grd->mx) > 1 ||
482 abs(egrd->ogy - grd->my) > 1)
663 if(abs(gx-x) >= abs(gy-y)) nx += dx; else ny += dy;
H A Dattrib.c275 if(abs(AEXE(i)) < AVAL) {
407 if(rn2(AVAL) > ((i != A_WIS) ? abs(AEXE(i)*2/3) : abs(AEXE(i))))
H A Dmakemon.c1183 case AM_NEUTRAL: alshift = (20 - abs(ptr->maligntyp))/ALIGNWEIGHT;
1593 !!rn2(2 + abs(mal))));
1634 int absmal = abs(mal);
1640 int absmal = abs(mal);
1646 int absmal = abs(mal);
1652 mtmp->malign = abs(mal);
H A Dcmd.c811 int absamt = abs(incamt);
1048 ltmp = abs((int)Luck);
2231 if (abs(x) <= 1 && abs(y) <= 1 ) {
2290 if(x > 2*abs(y))
2292 else if(y > 2*abs(x))
2294 else if(x < -2*abs(y))
2296 else if(y < -2*abs(x))
H A Dzap.c2904 register int abstype = abs(type) % 10;
2966 if(abs(type) != ZT_BREATH(ZT_DEATH)) { /* death */
3075 switch (abs(type) % 10) {
3119 if (abs(type) == ZT_BREATH(ZT_DEATH)) {
3278 int range, abstype = abs(type) % 10;
3291 fltxt = flash_types[(type <= -30) ? abstype : abs(type)];
3358 if (is_rider(mon->data) && abs(type) == ZT_BREATH(ZT_DEATH)) {
3572 int abstype = abs(type) % 10;
3691 if(abs(type) != ZT_BREATH(ZT_DEATH))
3707 abs(typ
[all...]
H A Dlight.c175 offset = limits[abs(y - ls->y)];
H A Dmthrowu.c712 if((!tbx || !tby || abs(tbx) == abs(tby)) /* straight line or diagonal */
/seL4-refos-master/libs/libmuslc/src/time/
H A Dstrftime.c187 abs(tm->__tm_gmtoff%3600)/60);

Completed in 133 milliseconds

12