/haiku/src/tests/servers/app/benchmark/ |
H A D | TestSupport.h | 13 random_number_between(float v1, float v2) argument 15 if (v1 < v2) 16 return v1 + fmod(rand() / 1000.0, (v2 - v1)); 17 else if (v2 < v1) 18 return v2 + fmod(rand() / 1000.0, (v1 - v2));
|
/haiku/src/apps/glteapot/ |
H A D | Vector3.h | 165 inline float triple(const Vector3& v1, const Vector3& v2) const
167 return m_x * (v1.y() * v2.z() - v1.z() * v2.y()) +
168 m_y * (v1.z() * v2.x() - v1.x() * v2.z()) +
169 m_z * (v1.x() * v2.y() - v1.y() * v2.x());
225 operator+(const Vector3& v1, const Vector3& v2)
argument 227 return Vector3(v1.x() + v2.x(), v1.y() + v2 231 operator *(const Vector3& v1, const Vector3& v2) argument 237 operator -(const Vector3& v1, const Vector3& v2) argument 268 operator /(const Vector3& v1, const Vector3& v2) argument 274 dot(const Vector3& v1, const Vector3& v2) argument 280 distance2(const Vector3& v1, const Vector3& v2) argument 287 distance(const Vector3& v1, const Vector3& v2) argument 293 angle(const Vector3& v1, const Vector3& v2) argument 299 cross(const Vector3& v1, const Vector3& v2) argument 305 triple(const Vector3& v1, const Vector3& v2, const Vector3& v3) argument 311 lerp(const Vector3& v1, const Vector3& v2, const float& t) argument [all...] |
H A D | GLObject.cpp | 393 int v2 = fTriangles[i].p3; local 405 fPoints[v2].nx, 406 fPoints[v2].ny, 407 fPoints[v2].nz 410 fPoints[v2].x, 411 fPoints[v2].y, 412 fPoints[v2].z
|
/haiku/src/apps/haiku3d/ |
H A D | Vector3.h | 176 inline float triple(const Vector3& v1, const Vector3& v2) const 178 return m_x * (v1.y() * v2.z() - v1.z() * v2.y()) 179 + m_y * (v1.z() * v2.x() - v1.x() * v2.z()) 180 + m_z * (v1.x() * v2.y() - v1.y() * v2.x()); 237 operator+(const Vector3& v1, const Vector3& v2) argument 239 return Vector3(v1.x() + v2.x(), v1.y() + v2 244 operator *(const Vector3& v1, const Vector3& v2) argument 251 operator -(const Vector3& v1, const Vector3& v2) argument 287 operator /(const Vector3& v1, const Vector3& v2) argument 294 dot(const Vector3& v1, const Vector3& v2) argument 301 distance2(const Vector3& v1, const Vector3& v2) argument 308 distance(const Vector3& v1, const Vector3& v2) argument 315 angle(const Vector3& v1, const Vector3& v2) argument 322 cross(const Vector3& v1, const Vector3& v2) argument 329 triple(const Vector3& v1, const Vector3& v2, const Vector3& v3) argument 336 lerp(const Vector3& v1, const Vector3& v2, const float& t) argument [all...] |
/haiku/src/libs/agg/src/ |
H A D | agg_vcgen_smooth_poly1.cpp | 82 const vertex_dist& v2, 87 double k2 = v1.dist / (v1.dist + v2.dist); 89 double xm1 = v0.x + (v2.x - v0.x) * k1; 90 double ym1 = v0.y + (v2.y - v0.y) * k1; 94 m_ctrl1_x = v1.x + m_smooth_value * (v2.x - xm1); 95 m_ctrl1_y = v1.y + m_smooth_value * (v2.y - ym1); 96 m_ctrl2_x = v2.x + m_smooth_value * (v1.x - xm2); 97 m_ctrl2_y = v2.y + m_smooth_value * (v1.y - ym2); 80 calculate(const vertex_dist& v0, const vertex_dist& v1, const vertex_dist& v2, const vertex_dist& v3) argument
|
/haiku/src/apps/icon-o-matic/generic/support/ |
H A D | support.h | 112 min5(float v1, float v2, float v3, float v4, float v5) argument 114 return min_c(min4(v1, v2, v3, v4), v5); 118 max5(float v1, float v2, float v3, float v4, float v5) argument 120 return max_c(max4(v1, v2, v3, v4), v5);
|
/haiku/headers/libs/agg/ |
H A D | agg_math_stroke.h | 91 const vertex_dist& v2, 104 const vertex_dist& v2, 205 const vertex_dist& v2, 218 v2.x + dx2, v2.y - dy2, 237 // First check if v0 and v2 lie on the opposite sides of vector: 246 ((x2 - v2.x)*dy1 - (v2.y - y2)*dx1 < 0.0)) 355 const vertex_dist& v2, 365 dx2 = m_width * (v2 202 calc_miter(VC& out_vertices, const vertex_dist& v0, const vertex_dist& v1, const vertex_dist& v2, double dx1, double dy1, double dx2, double dy2, line_join_e lj, double ml) argument 352 calc_join(VC& out_vertices, const vertex_dist& v0, const vertex_dist& v1, const vertex_dist& v2, double len1, double len2) argument [all...] |
H A D | agg_vcgen_smooth_poly1.h | 69 const vertex_dist& v2,
|
/haiku/src/libs/print/libprint/tools/ |
H A D | make_pattern.cpp | 47 int v2 = index2vert(index2) * 4 + v; local 48 pattern16x16[h2 + v2 * MAX_ELEMENT] = j + i * MAX_ELEMENT;
|
/haiku/src/add-ons/accelerants/radeon_hd/ |
H A D | encoder.cpp | 117 SELECT_CRTC_SOURCE_PARAMETERS_V2 v2; member in union:crtcSourceParam 172 args.v2.ucCRTC = crtcID; 173 args.v2.ucEncodeMode 182 args.v2.ucEncoderID 186 args.v2.ucEncoderID 190 args.v2.ucEncoderID 194 args.v2.ucEncoderID 198 args.v2.ucEncoderID 202 args.v2.ucEncoderID 208 args.v2 554 LVDS_ENCODER_CONTROL_PS_ALLOCATION_V2 v2; member in union:lvdsEncoderControl 679 DIG_ENCODER_CONTROL_PARAMETERS_V2 v2; member in union:digEncoderControl 1315 DIG_TRANSMITTER_CONTROL_PARAMETERS_V2 v2; member in union:digTransmitterControl [all...] |
H A D | pll.cpp | 821 PIXEL_CLOCK_PARAMETERS_V2 v2; member in union:setPixelClock 843 args.v2.usPixelClock 845 args.v2.usRefDiv = B_HOST_TO_LENDIAN_INT16(pll->referenceDiv); 846 args.v2.usFbDiv = B_HOST_TO_LENDIAN_INT16(pll->feedbackDiv); 847 args.v2.ucFracFbDiv = pll->feedbackDivFrac; 848 args.v2.ucPostDiv = pll->postDiv; 849 args.v2.ucPpll = pll->id; 850 args.v2.ucCRTC = crtcID; 851 args.v2.ucRefDivSrc = 1; 1021 PIXEL_CLOCK_PARAMETERS_V2 v2; member in union:setPixelClock 1092 SET_DCE_CLOCK_PS_ALLOCATION_V2_1 v2; member in union:setDCEClock [all...] |
H A D | display.cpp | 1026 ENABLE_SPREAD_SPECTRUM_ON_PPLL_V2 v2; member in union:enableSS 1057 args.v2.usSpreadSpectrumPercentage 1059 args.v2.ucSpreadSpectrumType 1063 args.v2.ucSpreadSpectrumType |= ATOM_PPLL_SS_TYPE_V2_P1PLL; 1066 args.v2.ucSpreadSpectrumType |= ATOM_PPLL_SS_TYPE_V3_P2PLL; 1069 args.v2.ucSpreadSpectrumType |= ATOM_PPLL_SS_TYPE_V3_DCPLL; 1077 args.v2.usSpreadSpectrumAmount = B_HOST_TO_LENDIAN_INT16(pll->ssAmount); 1078 args.v2.usSpreadSpectrumStep = B_HOST_TO_LENDIAN_INT16(pll->ssStep); 1079 args.v2.ucEnable = command;
|
H A D | displayport.cpp | 50 PROCESS_AUX_CHANNEL_TRANSACTION_PARAMETERS_V2 v2; member in union:auxChannelTransaction 55 args.v2.lpAuxRequest = B_HOST_TO_LENDIAN_INT16(0 + 4); 56 args.v2.lpDataOut = B_HOST_TO_LENDIAN_INT16(16 + 4); 57 args.v2.ucDataOutLen = 0; 58 args.v2.ucChannelID = dpInfo->auxPin; 59 args.v2.ucDelay = delay / 10; 62 args.v2.ucHPD_ID = connector_pick_atom_hpdid(connectorIndex); 72 *ack = args.v2.ucReplyStatus; 74 switch (args.v2.ucReplyStatus) {
|
/haiku/src/libs/glut/ |
H A D | glut_shapes.c | 287 crossprod(GLfloat v1[3], GLfloat v2[3], GLfloat prod[3]) argument 289 GLfloat p[3]; /* in case prod == v1 or v2 */ 291 p[0] = v1[1] * v2[2] - v2[1] * v1[2]; 292 p[1] = v1[2] * v2[0] - v2[2] * v1[0]; 293 p[2] = v1[0] * v2[1] - v2[0] * v1[1]; 393 subdivide(GLfloat * v0, GLfloat * v1, GLfloat * v2, argument 406 w0[n] = (i * v0[n] + j * v1[n] + k * v2[ [all...] |
/haiku/src/tests/servers/app/newerClipping/ |
H A D | ClientLooper.cpp | 23 random_number_between(float v1, float v2) argument 25 if (v1 < v2) 26 return v1 + fmod(rand() / 1000.0, (v2 - v1)); 27 else if (v2 < v1) 28 return v2 + fmod(rand() / 1000.0, (v1 - v2));
|
/haiku/src/system/boot/platform/amiga_m68k/ |
H A D | rom_calls.h | 162 #define LP2(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn) \ 165 t2 _##name##_v2 = (v2); \ 182 #define LP2NR(offs, name, t1, v1, r1, t2, v2, r2, bt, bn) \ 185 t2 _##name##_v2 = (v2); \ 202 #define LP2UB(offs, rt, name, t1, v1, r1, t2, v2, r2) \ 205 t2 _##name##_v2 = (v2); \ 222 #define LP2FP(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, fpt) \ 226 t2 _##name##_v2 = (v2); \ 243 #define LP3(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn) \ 246 t2 _##name##_v2 = (v2); \ [all...] |
/haiku/src/apps/icon-o-matic/generic/gui/panel/color_picker/ |
H A D | ColorField.cpp | 103 float v2 = 0; local 110 v2 = 1.0 - fMarkerPosition.y / Height(); 116 v2 = 1.0 - fMarkerPosition.y / Height(); 119 v2 = 1.0 - fMarkerPosition.x / Width(); 126 v2 = 1.0 - fMarkerPosition.y / Height(); 132 message->AddFloat("value", v2);
|
/haiku/headers/tools/cppunit/ |
H A D | TestShell.h | 82 enum VerbosityLevel { v0, v1, v2, v3, v4 }; enumerator in enum:BTestShell::VerbosityLevel 87 bool BeVerbose() const { return Verbosity() >= v2; };
|
/haiku/src/tests/kits/game/chart/ |
H A D | ChartWindow.h | 133 TPoint operator- (const TPoint& v2) const; 134 TPoint operator+ (const TPoint& v2) const; 135 TPoint operator^ (const TPoint& v2) const;
|
/haiku/src/bin/pcmcia-cs/ |
H A D | dump_cis.c | 773 static void print_vers_2(cistpl_vers_2_t *v2) argument 776 indent, v2->vers, v2->comply, v2->dindex); 778 indent, v2->vspec8, v2->vspec9, v2->nhdr); 779 printf("%s vendor \"%s\"\n", indent, v2->str+v2->vendor); 780 printf("%s info \"%s\"\n", indent, v2 [all...] |
/haiku/src/tests/servers/app/bitmap_drawing/ |
H A D | main.cpp | 28 random_number_between(float v1, float v2) argument 30 if (v1 < v2) 31 return v1 + fmod(rand() / 1000.0, (v2 - v1)); 32 else if (v2 < v1) 33 return v2 + fmod(rand() / 1000.0, (v1 - v2));
|
/haiku/src/tests/system/kernel/util/ |
H A D | VectorTest.cpp | 51 Vector<string> v2(100); 52 CHK(v2.Count() == 0); 53 CHK(v2.IsEmpty()); 54 CHK(v2.GetCapacity() == 100); 66 Vector<string> v2(0); 67 CHK(v2.Count() == 0); 68 CHK(v2.IsEmpty()); 69 CHK(v2.GetCapacity() > 0);
|
/haiku/src/system/libroot/posix/musl/math/ |
H A D | lgamma_r.c | 123 v2 = 2.12848976379893395361e+00, /* 0x40010725, 0xA42B18F5 */ variable 251 p2 = 1.0+y*(v1+y*(v2+y*(v3+y*(v4+y*v5))));
|
H A D | lgammaf_r.c | 58 v2 = 2.1284897327e+00, /* 0x4008392d */ variable 186 p2 = 1.0f+y*(v1+y*(v2+y*(v3+y*(v4+y*v5))));
|
H A D | lgammal.c | 159 v2 = 3.786631705644460255229513563657226008015E3L, variable 301 p2 = v0 + y * (v1 + y * (v2 + y * (v3 + y * (v4 + y * (v5 + y)))));
|