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

1234

/haiku/src/system/libroot/posix/stdlib/
H A Dabs.c14 abs(int i) function
/haiku/src/tests/libs/icon/flat_icon/
H A DFlatIconFormat.py28 exponent = math.floor(math.log2(abs(value)))
33 mantissa = abs(value) / 2**exponent - 1
/haiku/headers/libs/agg/
H A Dagg_line_aa_basics.h87 dx(abs(x2_ - x1_)),
88 dy(abs(y2_ - y1_)),
127 lp1.dx = abs(lp1.x2 - lp1.x1);
128 lp1.dy = abs(lp1.y2 - lp1.y1);
133 lp2.dx = abs(lp2.x2 - lp2.x1);
134 lp2.dy = abs(lp2.y2 - lp2.y1);
H A Dagg_dda_line.h236 m_ver(abs(m_x2_lr - m_x1_lr) < abs(m_y2_lr - m_y1_lr)),
237 m_len(m_ver ? abs(m_y2_lr - m_y1_lr) :
238 abs(m_x2_lr - m_x1_lr)),
H A Dagg_span_gradient.h335 int ax = abs(x);
336 int ay = abs(y);
348 return abs(x) * abs(y) / d;
359 return fast_sqrt(abs(x) * abs(y));
H A Dagg_renderer_outline_image.h491 lp.vertical ? abs(lp.y2 - lp.y1) :
492 abs(lp.x2 - lp.x1) + 1),
500 m_count((lp.vertical ? abs((lp.y2 >> line_subpixel_shift) - m_y) :
501 abs((lp.x2 >> line_subpixel_shift) - m_x))),
962 while(abs(sx - lp.x1) + abs(sy - lp.y1) > lp2.len)
975 while(abs(ex - lp.x2) + abs(ey - lp.y2) > lp2.len)
H A Dagg_renderer_outline_aa.h481 lp.vertical ? abs(lp.y2 - lp.y1) :
482 abs(lp.x2 - lp.x1) + 1),
489 m_count((lp.vertical ? abs((lp.y2 >> line_subpixel_shift) - m_y) :
490 abs((lp.x2 >> line_subpixel_shift) - m_x))),
1652 while(abs(sx - lp.x1) + abs(sy - lp.y1) > lp2.len)
1719 while(abs(ex - lp.x2) + abs(ey - lp.y2) > lp2.len)
1791 while(abs(sx - lp.x1) + abs(s
[all...]
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dlibkern.h26 extern int abs(int a);
/haiku/headers/cpp/std/
H A Dcomplext.cc54 return complex<FLOAT> (log (abs (x)), arg (x));
60 FLOAT logr = log (abs (x));
158 FLOAT ar = abs (y.re);
159 FLOAT ai = abs (y.im);
184 FLOAT ar = abs (real (y));
185 FLOAT ai = abs (imag (y));
208 FLOAT ar = abs (real (y));
209 FLOAT ai = abs (imag (y));
255 FLOAT r = abs (x);
/haiku/src/tests/kits/media/soundplayer/
H A DSoundPlayerTest.cpp17 inline float abs(float f) { return f < 0 ? -f : f; } function
106 for (f = out_max_dB; f >= out_min_dB; f -= abs(out_max_dB - out_min_dB) / 50) {
117 for (f = out_min_dB; f <= out_max_dB; f += abs(out_max_dB - out_min_dB) / 50) {
/haiku/src/add-ons/media/plugins/ape_reader/MAClib/
H A DNNFilter.cpp58 int nTempABS = abs(nInput);
106 int nTempABS = abs(nOutput);
/haiku/src/add-ons/media/media-add-ons/mixer/
H A DMixerUtils.h16 template<class t> const t abs(const t t1) { return (t1 < 0) ? - t1 : t1; } function
/haiku/src/libs/mapm/
H A Dmapm_log.c46 * use 'abs' call
197 if (abs(mexp) <= 3)
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/
H A Dah_osdep.h77 #define abs(_a) __builtin_abs(_a) macro
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/
H A Dif_rtwn_calib.c90 } else if (abs(temp - sc->thcal_temp) > sc->temp_delta) {
/haiku/src/servers/app/
H A DRGBColor.cpp89 delta = abs(c->red-color.red) + abs(c->green-color.green)
90 + abs(c->blue-color.blue);
H A DScreen.cpp264 int32 diff = 1000 * abs(mode.timing.v_display - height)
266 + 100 * abs((int)(mode.space - colorSpace));
/haiku/src/add-ons/translators/bmp/
H A DBMPTranslator.cpp393 pmsheader->width = abs(msheader.width);
473 pmsheader->bitsperpixel) * abs(pmsheader->height);
493 pmsheader->bitsperpixel) * abs(pmsheader->height);
769 if (bmppixrow == abs(msheader.height))
834 if (bmppixrow == abs(msheader.height))
920 if (bmppixrow == abs(msheader.height))
1221 off_t bitsFileSize = (bitsRowBytes * abs(msheader.height)) +
1252 uint32 rowCount = abs(msheader.height);
1347 off_t bitsFileSize = (bitsRowBytes * abs(msheader.height)) +
1383 if (bmppixrow == abs(msheade
[all...]
/haiku/src/system/boot/platform/efi/
H A Dvideo.cpp102 int64 diff = 2 * abs((int64)mode->width - width)
103 + abs((int64)mode->height - height)
104 + abs((int64)mode->bits_per_pixel - depth);
/haiku/src/libs/stdc++/legacy/
H A Dcinst.cc102 template f abs (ccr);
/haiku/src/add-ons/accelerants/radeon/
H A Dpll.c160 error = abs( (int32)cur_freq - (int32)freq );
162 vco_dev = abs( (int32)vco - (int32)(pll->best_vco) );
172 (abs( error - best_error ) < 100 && vco_dev < best_vco_dev ))))
260 abs_crt_error = abs( (int32)(dividers->freq) - (int32)crt_freq );
/haiku/src/kits/locale/
H A DRelativeDateTimeFormat.cpp147 if (abs(delta) >= offset) {
/haiku/headers/private/virtio/
H A Dvirtio_defs.h178 VirtioInputAbsinfo abs; member in union:VirtioInputConfig::__anon12
/haiku/src/apps/activitymonitor/
H A DSettingsWindow.cpp55 int32 diff = abs(kUpdateIntervals[i] - interval);
/haiku/src/kits/tracker/
H A DDraggableContainerIcon.cpp110 || (abs((int32)(where.x - fClickPoint.x)) <= kDragSlop
111 && abs((int32)(where.y - fClickPoint.y)) <= kDragSlop))

Completed in 261 milliseconds

1234