/haiku/src/kits/interface/ |
H A D | DecimalSpinner.cpp | 22 return floor(value * pow(10.0, n) + 0.5) / pow(10.0, n);
|
/haiku/src/apps/cortex/ValControl/ |
H A D | NumericValControl.cpp | 192 double factor = pow(10, -fFractionalDigits); 205 double factor = pow(10, fFractionalDigits); 242 // pow( 253 double ret = (double)_ValueFixed() / pow(10, fFractionalDigits); 272 double scaleFactor = pow(10, fFractionalDigits); 379 int64 segmentFactor = (int64)pow(10, fFractionalDigits + segment->scaleFactor()); 541 double max = pow(10, fWholeDigits) - pow(10, -fFractionalDigits); 574 acc += digitSegment->value() * (int64)pow(10, 619 int64 hiCut = fixed % (int64)pow(1 [all...] |
/haiku/src/add-ons/translators/psd/ |
H A D | PSDLoader.cpp | 429 R = R > 0.0031308 ? pow(R, 1.0 / 2.4) * 1.055 - 0.055 431 G = G > 0.0031308 ? pow(G, 1.0 / 2.4) * 1.055 - 0.055 433 B = B > 0.0031308 ? pow(B, 1.0 / 2.4) * 1.055 - 0.055
|
/haiku/src/add-ons/media/media-add-ons/mixer/ |
H A D | AudioMixer.cpp | 1210 db = db * (pow(abs(DB_MAX), (1.0 / DB_EXPONENT_POSITIVE)) 1212 db = pow(db, DB_EXPONENT_POSITIVE); 1215 db = db * (pow(abs(DB_MIN), (1.0 / DB_EXPONENT_NEGATIVE)) 1217 db = pow(db, DB_EXPONENT_NEGATIVE); 1221 return pow(10.0, db / 20.0); 1231 db = pow(db, (1.0 / DB_EXPONENT_POSITIVE)); 1232 db = db * (abs(DB_MAX) / pow(abs(DB_MAX), 1236 db = pow(db, (1.0 / DB_EXPONENT_NEGATIVE)); 1237 db = db * (abs(DB_MIN) / pow(abs(DB_MIN),
|
/haiku/src/system/libroot/stubbed/ |
H A D | libroot_stubs_legacy.c | 2154 void pow() {} function
|
H A D | libroot_stubs.c | 2175 void pow() {} function
|
/haiku/headers/posix/ |
H A D | math.h | 240 extern double pow(double x, double y);
|
/haiku/src/system/libroot/posix/crypt/ |
H A D | crypt.cpp | 178 long n = static_cast<long>(pow(2, nLog2));
|
/haiku/src/kits/shared/ |
H A D | ExpressionParser.cpp | 548 value = value.pow(_ParseUnary()); 684 } else if (strcasecmp("pow", token.string.String()) == 0) { 686 return _ParseFactorial(values[0].pow(values[1])); 759 return value.pow(value) / value.exp() 762 + (MAPM(1) / (MAPM(288) * value.pow(2))) 763 - (MAPM(139) / (MAPM(51840) * value.pow(3))) 764 - (MAPM(571) / (MAPM(2488320) * value.pow(4))) 765 + (MAPM(163879) / (MAPM(209018880) * value.pow(5))) 768 + MAPM(84869155)) * value.pow(6))) 771 + MAPM(1018429860)) * value.pow( [all...] |
/haiku/src/add-ons/translators/exr/ |
H A D | EXRGamma.cpp | 57 m (Imath::Math<float>::pow(2, exposure + 2.47393)), 59 kl (Imath::Math<float>::pow(2, kneeLow)), 60 f (findKneeF (Imath::Math<float>::pow(2, kneeHigh) - kl, 61 Imath::Math<float>::pow(2, 3.5) - kl)), 62 s (255.0 * Imath::Math<float>::pow(2, -3.5 * g)) 93 x = Imath::Math<float>::pow (x, g);
|
/haiku/src/apps/cortex/MediaRoutingView/ |
H A D | MediaWire.cpp | 158 length = sqrt(pow(eo.x - so.x, 2) + pow(eo.y - so.y, 2));
|
/haiku/src/preferences/input/ |
H A D | InputMouse.cpp | 173 (int32)pow(2, value * 6.0 / 1000) * 8192); 186 (int32)pow(value * 4.0 / 1000, 2) * 16384);
|
/haiku/src/kits/media/ |
H A D | SoundPlayer.cpp | 587 return pow(10.0, VolumeDB(true) / 20.0);
|
/haiku/src/apps/icon-o-matic/import_export/svg/ |
H A D | nanosvg.h | 1120 res += (double)fracPart / pow(10.0, (double)(end - cur)); 1137 res *= pow(10.0, (double)expPart);
|
/haiku/src/add-ons/translators/raw/ |
H A D | RAW.cpp | 500 fMeta.iso_speed = 50 * pow(2, fRead.Next<uint16>() / 32.0 - 4); 503 fMeta.aperture = pow(2, fRead.Next<uint16>() / 64.0); 504 fMeta.shutter = pow(2, fRead.Next<int16>() / -32.0); 747 fMeta.shutter = pow(2, expo); 752 = pow(2, fRead.NextDouble(TIFF_FRACTION_TYPE) / 2); 1285 cbrt[i] = r > 0.008856 ? pow(r, 1 / 3.0) : 7.787 * r + 16 / 116.0; 2109 r <= 0.00304 ? r*12.92 : pow(r,2.5/6)*1.055-0.055)); 2111 r <= 0.018 ? r*4.5 : pow(r,0.45)*1.099-0.099));
|
/haiku/src/system/libroot/posix/musl/math/ |
H A D | tgamma.c | 168 z = pow(y, 0.5*z);
|
H A D | powl.c | 43 * The relative error of pow(x,y) can be estimated 64 * pow overflow x**y > MAXNUM INFINITY 65 * pow underflow x**y < 1/MAXNUM 0.0 66 * pow domain x<0 and y noninteger 0.0 75 return pow(x, y); 520 return pow(x, y);
|
H A D | pow.c | 255 double pow(double x, double y) function 267 /* Note: if |y| > 1075 * ln2 * 2^53 ~= 0x1.749p62 then pow(x,y) = inf/0 268 and if |y| < 2^-54 / 1075 ~= 0x1.e7b6p-65 then pow(x,y) = +-1. */
|
H A D | exp10.c | 22 return pow(10.0, x);
|
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/ |
H A D | if_malohal.c | 697 uint16_t pow; local 707 pow = cal->pt_ratetable_20m[idx]; 708 cmd->power_levellist[i] = htole16(pow);
|
/haiku/src/apps/mediaplayer/interface/ |
H A D | TransportControlGroup.cpp | 323 db = db * (pow(fabs(kVolumeDbMax), (1.0 / kVolumeDbExpPositive)) 325 db = pow(db, kVolumeDbExpPositive); 328 db = db * (pow(fabs(kVolumeDbMin), (1.0 / kVolumeDbExpNegative)) 330 db = pow(db, kVolumeDbExpNegative); 342 db = pow(db, (1.0 / kVolumeDbExpPositive)); 343 db = db * (fabs(kVolumeDbMax) / pow(fabs(kVolumeDbMax), 347 db = pow(db, (1.0 / kVolumeDbExpNegative)); 348 db = db * (fabs(kVolumeDbMin) / pow(fabs(kVolumeDbMin), 359 return pow(10.0, db / 20.0);
|
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8363/dev/mwl/ |
H A D | mwlhal.c | 1128 uint16_t pow = hc->targetPowers[i]; local 1129 if (pow > maxtxpow) 1130 pow = maxtxpow; 1131 pCmd->PowerLevelList[i] = htole16(pow);
|
/haiku/src/add-ons/media/media-add-ons/vst_host/ |
H A D | VSTHost.cpp | 156 if (val <= -pow(2, 31)) { 158 } else if (val >= pow(2, 31)) {
|
/haiku/src/libs/print/libprint/ |
H A D | JobSetupDlg.cpp | 892 return pow(2.0, value / 100.0);
|
/haiku/src/add-ons/translators/wonderbrush/support/ |
H A D | lab_convert.cpp | 29 table[i + GAMMA_ZERO_ENTRIES] = (uint8)(pow((float)i / (float)(GAMMA_ENTRIES - 1), 0.4) * 255.0 + 0.5); 41 table[i] = pow((float)i / 255.0, 2.5); 145 R = (uint8)(pow(linearR, 0.4) * 255.0 + 0.5); 146 G = (uint8)(pow(linearG, 0.4) * 255.0 + 0.5); 147 B = (uint8)(pow(linearB, 0.4) * 255.0 + 0.5);*/ 151 R = (uint8)constrain_int32_0_255((int32)(pow(linearR, 0.4) * 255.0 + 0.5)); 152 G = (uint8)constrain_int32_0_255((int32)(pow(linearG, 0.4) * 255.0 + 0.5)); 153 B = (uint8)constrain_int32_0_255((int32)(pow(linearB, 0.4) * 255.0 + 0.5)); 166 return pow(t, 1.0 / 3.0); 174 /* float linearR = pow((floa [all...] |