/haiku-fatelf/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-fatelf/src/libs/fluidsynth/src/ |
H A D | fluid_mod.c | 114 fluid_real_t v1 = 0.0, v2 = 1.0; local 257 v2 = fluid_channel_get_cc(chan, mod->src2); 261 v2 = range2; 264 v2 = voice->vel; 267 v2 = voice->key; 270 v2 = chan->key_pressure; 273 v2 = chan->channel_pressure; 276 v2 = chan->pitch_bend; 279 v2 = chan->pitch_wheel_sensitivity; 289 v2 / [all...] |
/haiku-fatelf/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 | 392 int v2 = fTriangles[i].p3; local 404 fPoints[v2].nx, 405 fPoints[v2].ny, 406 fPoints[v2].nz 409 fPoints[v2].x, 410 fPoints[v2].y, 411 fPoints[v2].z
|
/haiku-fatelf/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-fatelf/src/bin/gdb/gdb/ |
H A D | valarith.c | 776 DOUBLEST v1, v2, v = 0; 778 v2 = value_as_double (arg2); 782 v = v1 + v2; 786 v = v1 - v2; 790 v = v1 * v2; 794 v = v1 / v2; 798 v = pow (v1, v2); 822 LONGEST v1, v2, v = 0; 824 v2 = value_as_long (arg2); 829 v = v1 & v2; 772 DOUBLEST v1, v2, v = 0; local 818 LONGEST v1, v2, v = 0; local 902 ULONGEST v1, v2, v = 0; local 1027 LONGEST v1, v2, v = 0; local [all...] |
H A D | gdb_indent.sh | 49 v2=`echo "${version}" | sed 's/^.* \([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)$/\2/'` 52 if test $m1 -ne $v1 -o $m2 -ne $v2 -o $m3 -gt $v3
|
/haiku-fatelf/src/system/libroot/posix/crypt/ |
H A D | crypt_util.c | 609 { ufc_long v1, v2, *k1; local 618 v1 = v2 = 0; k1 = &do_pc1[0][0][0]; 621 v2 |= k1[*key++ & 0x7f]; k1 += 128; 641 v2 = (v2 << rots[i]) | (v2 >> (28 - rots[i])); 642 v |= k1[(v2 >> 21) & 0x7f]; k1 += 128; 643 v |= k1[(v2 >> 14) & 0x7f]; k1 += 128; 644 v |= k1[(v2 >> 7) & 0x7f]; k1 += 128; 645 v |= k1[(v2 ) 659 { ufc_long v1, v2, x; local [all...] |
/haiku-fatelf/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-fatelf/src/add-ons/translators/exr/openexr/imath/ |
H A D | ImathVecAlgo.h | 80 // Find the vertex of triangle (v0, v1, v2), which is closest to point p 86 const Vec &v2, 119 const Vec &v2, 132 tmp = (v2 - p).length2(); 137 nearest = v2; 117 closestVertex(const Vec &v0, const Vec &v1, const Vec &v2, const Vec &p) argument
|
H A D | ImathLineAlgo.h | 58 // const Vec3<T> &v2, 66 // const Vec3<T> &v2, 127 const Vec3<T> &v2, 133 // Given a line and a triangle (v0, v1, v2), the intersect() function 149 // normal, (v2-v1)%(v1-v0), and the line's direction is negative. 153 // pt = v0 * barycentric.x + v1 * barycentric.y + v2 * barycentric.z 157 Vec3<T> edge1 = v2 - v1; 189 Vec3<T> b = v2 - v0; 231 const Vec3<T> &v2, 245 tmp = (v2 123 intersect(const Line3<T> &line, const Vec3<T> &v0, const Vec3<T> &v1, const Vec3<T> &v2, Vec3<T> &pt, Vec3<T> &barycentric, bool &front) argument 228 closestVertex(const Vec3<T> &v0, const Vec3<T> &v1, const Vec3<T> &v2, const Line3<T> &l) argument [all...] |
H A D | ImathBoxAlgo.h | 452 int i, v0, v1, v2; local 468 case 0: v0 = 2; v1 = 1; v2 = 0; break; // +z 469 case 1: v0 = 2; v1 = 3; v2 = 1; break; 471 case 2: v0 = 4; v1 = 5; v2 = 6; break; // -z 472 case 3: v0 = 6; v1 = 5; v2 = 7; break; 474 case 4: v0 = 0; v1 = 6; v2 = 2; break; // -x 475 case 5: v0 = 0; v1 = 4; v2 = 6; break; 477 case 6: v0 = 1; v1 = 3; v2 = 7; break; // +x 478 case 7: v0 = 1; v1 = 7; v2 = 5; break; 480 case 8: v0 = 1; v1 = 4; v2 [all...] |
/haiku-fatelf/src/bin/less/ |
H A D | less.h | 187 #define SNPRINTF2(str, size, fmt, v1, v2) snprintf((str), (size), (fmt), (v1), (v2)) 188 #define SNPRINTF3(str, size, fmt, v1, v2, v3) snprintf((str), (size), (fmt), (v1), (v2), (v3)) 189 #define SNPRINTF4(str, size, fmt, v1, v2, v3, v4) snprintf((str), (size), (fmt), (v1), (v2), (v3), (v4)) 193 #define SNPRINTF2(str, size, fmt, v1, v2) sprintf((str), (fmt), (v1), (v2)) 194 #define SNPRINTF3(str, size, fmt, v1, v2, v3) sprintf((str), (fmt), (v1), (v2), (v [all...] |
/haiku-fatelf/src/add-ons/media/plugins/asf_reader/libasf/ |
H A D | guid.h | 26 uint32_t v2; member in struct:asf_guid_s
|
/haiku-fatelf/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-fatelf/headers/libs/agg/ |
H A D | agg_math_stroke.h | 91 const vertex_dist& v2, 104 const vertex_dist& v2, 206 const vertex_dist& v2, 219 v2.x + dx2, v2.y - dy2, 238 // First check if v0 and v2 lie on the opposite sides of vector: 247 ((x2 - v2.x)*dy1 - (v2.y - y2)*dx1 < 0.0)) 356 const vertex_dist& v2, 366 dx2 = m_width * (v2 203 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 353 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-fatelf/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-fatelf/src/system/libroot/posix/glibc/arch/generic/ |
H A D | k_tan.c | 87 double z,r,v,w,s,r1,r2,r3,v1,v2,v3,w2,w4; local 116 v2 = T[6]+w*T[8]; w4=w2*w2; 118 r1 = T[9]+w*T[11]; v2=z*v2; 121 v = v3 + w2*v2 + w4*v1;
|
/haiku-fatelf/src/libs/pdflib/libs/png/ |
H A D | pngvcrd.c | 1213 movd mm0, [esi] ; X X X X X v2 v1 v0 1214 pand mm0, const4 ; 0 0 0 0 0 v2 v1 v0 1215 movq mm1, mm0 ; 0 0 0 0 0 v2 v1 v0 1216 psllq mm0, 16 ; 0 0 0 v2 v1 v0 0 0 1217 movq mm2, mm0 ; 0 0 0 v2 v1 v0 0 0 1218 psllq mm0, 24 ; v2 v1 v0 0 0 0 0 0 1219 psrlq mm1, 8 ; 0 0 0 0 0 0 v2 v1 1220 por mm0, mm2 ; v2 v1 v0 v2 v1 v0 0 0 1221 por mm0, mm1 ; v2 v [all...] |
/haiku-fatelf/src/add-ons/accelerants/radeon_hd/ |
H A D | encoder.cpp | 93 SELECT_CRTC_SOURCE_PARAMETERS_V2 v2; member in union:crtcSourceParam 145 args.v2.ucCRTC = crtcID; 146 args.v2.ucEncodeMode 155 args.v2.ucEncoderID 159 args.v2.ucEncoderID 163 args.v2.ucEncoderID 167 args.v2.ucEncoderID 171 args.v2.ucEncoderID 175 args.v2.ucEncoderID 181 args.v2 455 LVDS_ENCODER_CONTROL_PS_ALLOCATION_V2 v2; member in union:lvdsEncoderControl 577 DIG_ENCODER_CONTROL_PARAMETERS_V2 v2; member in union:digEncoderControl 1209 DIG_TRANSMITTER_CONTROL_PARAMETERS_V2 v2; member in union:digTransmitterControl [all...] |
/haiku-fatelf/src/libs/glut/ |
H A D | glut_shapes.c | 285 crossprod(GLfloat v1[3], GLfloat v2[3], GLfloat prod[3]) argument 287 GLfloat p[3]; /* in case prod == v1 or v2 */ 289 p[0] = v1[1] * v2[2] - v2[1] * v1[2]; 290 p[1] = v1[2] * v2[0] - v2[2] * v1[0]; 291 p[2] = v1[0] * v2[1] - v2[0] * v1[1]; 391 subdivide(GLfloat * v0, GLfloat * v1, GLfloat * v2, argument 404 w0[n] = (i * v0[n] + j * v1[n] + k * v2[ [all...] |
/haiku-fatelf/src/bin/sharutils/lib/ |
H A D | mktime.c | 99 unsigned long int v1, v2; local 102 v1 = v2 = 0; 106 v2 += t2->x * secs; \ 127 distance = (v1 > v2) ? (v1 - v2) : (v2 - v1);
|
/haiku-fatelf/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-fatelf/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...] |