/haiku/headers/libs/agg/ |
H A D | agg_line_aa_basics.h | 87 dx(abs(x2_ - x1_)), in line_parameters() 88 dy(abs(y2_ - y1_)), in line_parameters() 127 lp1.dx = abs(lp1.x2 - lp1.x1); in divide() 128 lp1.dy = abs(lp1.y2 - lp1.y1); in divide() 133 lp2.dx = abs(lp2.x2 - lp2.x1); in divide() 134 lp2.dy = abs(lp2.y2 - lp2.y1); in divide()
|
H A D | agg_dda_line.h | 236 m_ver(abs(m_x2_lr - m_x1_lr) < abs(m_y2_lr - m_y1_lr)), in line_bresenham_interpolator() 237 m_len(m_ver ? abs(m_y2_lr - m_y1_lr) : in line_bresenham_interpolator() 238 abs(m_x2_lr - m_x1_lr)), in line_bresenham_interpolator()
|
H A D | agg_span_gradient.h | 335 int ax = abs(x); in calculate() 336 int ay = abs(y); in calculate() 348 return abs(x) * abs(y) / d; in calculate() 359 return fast_sqrt(abs(x) * abs(y)); in calculate()
|
H A D | agg_renderer_outline_image.h | 491 lp.vertical ? abs(lp.y2 - lp.y1) : in line_interpolator_image() 492 abs(lp.x2 - lp.x1) + 1), in line_interpolator_image() 500 m_count((lp.vertical ? abs((lp.y2 >> line_subpixel_shift) - m_y) : in line_interpolator_image() 501 abs((lp.x2 >> line_subpixel_shift) - m_x))), in line_interpolator_image() 962 while(abs(sx - lp.x1) + abs(sy - lp.y1) > lp2.len) in line3() 975 while(abs(ex - lp.x2) + abs(ey - lp.y2) > lp2.len) in line3()
|
H A D | agg_renderer_outline_aa.h | 481 lp.vertical ? abs(lp.y2 - lp.y1) : in line_interpolator_aa_base() 482 abs(lp.x2 - lp.x1) + 1), in line_interpolator_aa_base() 489 m_count((lp.vertical ? abs((lp.y2 >> line_subpixel_shift) - m_y) : in line_interpolator_aa_base() 490 abs((lp.x2 >> line_subpixel_shift) - m_x))), in line_interpolator_aa_base() 1652 while(abs(sx - lp.x1) + abs(sy - lp.y1) > lp2.len) in line1() 1719 while(abs(ex - lp.x2) + abs(ey - lp.y2) > lp2.len) in line2() 1791 while(abs(sx - lp.x1) + abs(sy - lp.y1) > lp2.len) in line3() 1804 while(abs(ex - lp.x2) + abs(ey - lp.y2) > lp2.len) in line3()
|
H A D | agg_scanline_boolean_algebra.h | 409 return unsigned(abs(int(a) - int(b))); in calculate() 636 add_span(span, span->x, abs((int)span->len), sl); in sbool_add_spans_and_render() 681 int xe1 = xb1 + abs((int)span1->len) - 1; in sbool_intersect_scanlines() 682 int xe2 = xb2 + abs((int)span2->len) - 1; in sbool_intersect_scanlines() 875 xe1 = xb1 + abs((int)span1->len) - 1; in sbool_unite_scanlines() 885 xe2 = xb2 + abs((int)span2->len) - 1; in sbool_unite_scanlines() 899 xe1 = xb1 + abs((int)span1->len) - 1; in sbool_unite_scanlines() 909 xe2 = xb2 + abs((int)span2->len) - 1; in sbool_unite_scanlines()
|
/haiku/headers/cpp/std/ |
H A D | complext.cc | 54 return complex<FLOAT> (log (abs (x)), arg (x)); in log() 60 FLOAT logr = log (abs (x)); in pow() 158 FLOAT ar = abs (y.re); in __doadv() 159 FLOAT ai = abs (y.im); in __doadv() 184 FLOAT ar = abs (real (y)); in operator /() 185 FLOAT ai = abs (imag (y)); in operator /() 208 FLOAT ar = abs (real (y)); in operator /() 209 FLOAT ai = abs (imag (y)); in operator /() 255 FLOAT r = abs (x); in sqrt()
|
/haiku/src/tests/libs/icon/flat_icon/ |
H A D | FlatIconFormat.py | 28 exponent = math.floor(math.log2(abs(value))) 33 mantissa = abs(value) / 2**exponent - 1
|
/haiku/headers/cpp/ |
H A D | cstdlib | 15 inline long abs(long x) { return labs (x); } 17 inline long abs(long x) { return x >= 0 ? x : -x; }
|
H A D | cmath | 40 inline float abs (float x) { return fabs (x); } 42 inline double abs (double x) { return fabs (x); } 72 inline long double abs (long double x) { return fabs (x); }
|
/haiku/src/tests/kits/media/soundplayer/ |
H A D | SoundPlayerTest.cpp | 17 inline float abs(float f) { return f < 0 ? -f : f; } in abs() function 106 for (f = out_max_dB; f >= out_min_dB; f -= abs(out_max_dB - out_min_dB) / 50) { in main() 117 for (f = out_min_dB; f <= out_max_dB; f += abs(out_max_dB - out_min_dB) / 50) { in main()
|
/haiku/src/system/libroot/posix/stdlib/ |
H A D | abs.c | 14 abs(int i) in abs() function
|
H A D | Jamfile | 16 abs.c
|
/haiku/src/add-ons/media/plugins/ape_reader/MAClib/ |
H A D | NNFilter.cpp | 58 int nTempABS = abs(nInput); in Compress() 106 int nTempABS = abs(nOutput); in Decompress()
|
/haiku/src/add-ons/translators/bmp/ |
H A D | BMPTranslator.cpp | 393 pmsheader->width = abs(msheader.width); in identify_bmp_header() 473 pmsheader->bitsperpixel) * abs(pmsheader->height); in identify_bmp_header() 493 pmsheader->bitsperpixel) * abs(pmsheader->height); in identify_bmp_header() 769 if (bmppixrow == abs(msheader.height)) in translate_from_bits_to_bmp24() 834 if (bmppixrow == abs(msheader.height)) in translate_from_bits8_to_bmp8() 920 if (bmppixrow == abs(msheader.height)) in translate_from_bits1_to_bmp1() 1221 off_t bitsFileSize = (bitsRowBytes * abs(msheader.height)) + in translate_from_bmpnpal_to_bits() 1252 uint32 rowCount = abs(msheader.height); in translate_from_bmpnpal_to_bits() 1347 off_t bitsFileSize = (bitsRowBytes * abs(msheader.height)) + in translate_from_bmppal_to_bits() 1383 if (bmppixrow == abs(msheader.height)) in translate_from_bmppal_to_bits() [all …]
|
/haiku/src/add-ons/accelerants/radeon/ |
H A D | pll.c | 160 error = abs( (int32)cur_freq - (int32)freq ); in Radeon_CalcPLLDividers() 162 vco_dev = abs( (int32)vco - (int32)(pll->best_vco) ); in Radeon_CalcPLLDividers() 172 (abs( error - best_error ) < 100 && vco_dev < best_vco_dev )))) in Radeon_CalcPLLDividers() 260 abs_crt_error = abs( (int32)(dividers->freq) - (int32)crt_freq ); in Radeon_MatchCRTPLL()
|
/haiku/src/servers/app/ |
H A D | RGBColor.cpp | 89 delta = abs(c->red-color.red) + abs(c->green-color.green) in FindClosestColor() 90 + abs(c->blue-color.blue); in FindClosestColor()
|
H A D | Screen.cpp | 264 int32 diff = 1000 * abs(mode.timing.v_display - height) in _FindBestMode() 266 + 100 * abs((int)(mode.space - colorSpace)); in _FindBestMode()
|
/haiku/src/libs/compat/freebsd_network/compat/sys/ |
H A D | libkern.h | 28 extern int abs(int a);
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/ |
H A D | if_rtwn_calib.c | 88 } else if (abs(temp - sc->thcal_temp) > sc->temp_delta) { in rtwn_temp_calib()
|
/haiku/src/kits/tracker/ |
H A D | DraggableContainerIcon.cpp | 110 || (abs((int32)(where.x - fClickPoint.x)) <= kDragSlop in MouseMoved() 111 && abs((int32)(where.y - fClickPoint.y)) <= kDragSlop)) in MouseMoved()
|
/haiku/src/system/boot/platform/efi/ |
H A D | video.cpp | 102 int64 diff = 2 * abs((int64)mode->width - width) in closest_video_mode() 103 + abs((int64)mode->height - height) in closest_video_mode() 104 + abs((int64)mode->bits_per_pixel - depth); in closest_video_mode()
|
/haiku/src/add-ons/media/media-add-ons/mixer/ |
H A D | MixerUtils.h | 16 template<class t> const t abs(const t t1) { return (t1 < 0) ? - t1 : t1; } in abs() function
|
/haiku/src/libs/mapm/ |
H A D | mapm_log.c | 197 if (abs(mexp) <= 3) in m_apm_log()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ |
H A D | ah_osdep.h | 74 #define abs(_a) __builtin_abs(_a) macro
|