Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 27) sorted by relevance

12

/CTR-SDK-0.14.4/sources/libraries/rdt/CTR/
Drdt_ReceiveBuffer.cpp173 ReceiveBuffer w; in Test() local
179 w.Initialize(windowBuf, BUFSIZE); in Test()
180 w.SetInitialSequenceNumber(SEQ_NUM); in Test()
181 CU_ASSERT(w.GetRestSize()==BUFSIZE); in Test()
182 CU_ASSERT(w.GetLatestSequenceNumber()==SEQ_NUM); in Test()
185 CU_ASSERT(!w.Push(buf, sizeof(buf))); // 大きすぎるデータをPushしようとしているので、失敗するはず。 in Test()
187 CU_ASSERT(w.Push("Hello", 5)); in Test()
188 CU_ASSERT(w.Read(buf, 5)==5); in Test()
190 CU_ASSERT(w.GetLatestSequenceNumber()==SEQ_NUM+5); in Test()
191 CU_ASSERT(w.GetRestSize()==BUFSIZE-5); in Test()
[all …]
Dtypes.h109 u32 w[3]; member
115 u32 w[4]; member
/CTR-SDK-0.14.4/include/nn/math/ARMv6/inline/
Dmath_Quaternion.ipp57 pDst->w = q1->w * q2->w - q1->x * q2->x - q1->y * q2->y - q1->z * q2->z;
58 pDst->x = q1->w * q2->x + q1->x * q2->w + q1->y * q2->z - q1->z * q2->y;
59 pDst->y = q1->w * q2->y + q1->y * q2->w + q1->z * q2->x - q1->x * q2->z;
60 pDst->z = q1->w * q2->z + q1->z * q2->w + q1->x * q2->y - q1->y * q2->x;
72 register f32 x, y, z, w;
79 q1w = q1->w;
84 q2w = q2->w;
89 w = q1w * q2w - q1x * q2x - q1y * q2y - q1z * q2z;
94 pOut->w = w;
117 mag = (q->x * q->x) + (q->y * q->y) + (q->z * q->z) + (q->w * q->w);
[all …]
Dmath_Types.ipp119 pOut->w = s * 0.5f;
138 pOut->w = (m[k][j] - m[j][k]) * s;
163 f32 x, y, z, w, s;
165 w = s * 0.5f;
170 pOut->w = w;
177 f32 x, y, z, w, s;
198 w = (m[2][1] - m[1][2]) * s;
203 pOut->w = w;
217 w = (m[0][2] - m[2][0]) * s;
222 pOut->w = w;
[all …]
Dmath_Matrix44.ipp43 tmp.w = pM->f._30 * pV->x + pM->f._31 * pV->y + pM->f._32 * pV->z + pM->f._33;
48 pOut->w = tmp.w;
750 f32 w;
797 w = 1.0f / src[i][i];
800 src[i][j] *= w;
801 inv[i][j] *= w;
809 w = src[k][i];
812 src[k][j] -= src[i][j] * w;
813 inv[k][j] -= inv[i][j] * w;
Dmath_Matrix34.ipp1576 NN_ASSERT( pQ->x || pQ->y || pQ->z || pQ->w );
1580 s = 2.0f / ( (pQ->x * pQ->x) + (pQ->y * pQ->y) + (pQ->z * pQ->z) + (pQ->w * pQ->w) );
1583 wx = pQ->w * xs; wy = pQ->w * ys; wz = pQ->w * zs;
1614 NN_ASSERT( pQ->x || pQ->y || pQ->z || pQ->w );
1621 pQw = pQ->w;
/CTR-SDK-0.14.4/include/nn/math/inline/
Dmath_Vector4.ipp37 return p->x == 0.f && p->y == 0.f && p->z == 0.f && p->w == 0.f;
50 return p->x == 0.f && p->y == 0.f && p->z == 0.f && p->w == 1.f;
68 pOut->w = p1->w + p2->w;
88 pOut->w = p1->w - p2->w;
108 pOut->w = p1->w * p2->w;
127 pOut->w = scale * p->w;
149 pOut->w = p1->w + t * (p2->w - p1->w);
165 return p1->x * p2->x + p1->y * p2->y + p1->z * p2->z + p1->w * p2->w;
179 return p->x * p->x + p->y * p->y + p->z * p->z + p->w * p->w;
273 pOut->w = (p1->w > p2->w) ? p1->w : p2->w;
[all …]
Dmath_Quaternion.ipp48 pOut->w = q1->w + q2->w;
74 pOut->w = q1->w - q2->w;
120 return (q1->x * q2->x + q1->y * q2->y + q1->z * q2->z + q1->w * q2->w);
143 pOut->w = q->w * scale;
155 純粋なクォータニオン(w=0)でなければなりません。
168 NN_ASSERT( q->w == 0.0F );
181 pOut->w = (f32)::std::cosf(theta);
207 theta = ::std::atan2f( scale, q->w );
217 pOut->w = 0.0F;
243 pOut->w = t * ( q2->w - q1->w ) + q1->w;
[all …]
Dmath_Types.ipp117 // Vec has a 4th implicit 'w' coordinate of 1
206 // Vec has a 4th implicit 'w' coordinate of 1
291 tmp.x = pM->f._00 * pV->x + pM->f._01 * pV->y + pM->f._02 * pV->z + pM->f._03 * pV->w;
292 tmp.y = pM->f._10 * pV->x + pM->f._11 * pV->y + pM->f._12 * pV->z + pM->f._13 * pV->w;
293 tmp.z = pM->f._20 * pV->x + pM->f._21 * pV->y + pM->f._22 * pV->z + pM->f._23 * pV->w;
294 tmp.w = pM->f._30 * pV->x + pM->f._31 * pV->y + pM->f._32 * pV->z + pM->f._33 * pV->w;
299 pOut->w = tmp.w;
/CTR-SDK-0.14.4/include/nn/math/
Dmath_Vector4.h57 f32 w; member
96 VEC4(const f32* p) { x = p[0]; y = p[1]; z = p[2]; w = p[3]; } in VEC4()
98 VEC4(const VEC4_& v) { x = v.x; y = v.y; z = v.z; w = v.w; } in VEC4()
100 VEC4(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in VEC4()
102 VEC4(const VEC3& v) { x = v.x; y = v.y; z = v.z; w = 0.0f; } in VEC4()
128 self_type operator - () const { return self_type(-x, -y, -z, -w); }
214 void Set(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in Set()
223 …or == (const self_type& rhs) const { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; }
226 …or != (const self_type& rhs) const { return x != rhs.x || y != rhs.y || z != rhs.z || w != rhs.w; }
Dmath_Quaternion.h60 f32 w; member
70 QUAT(const f32* p) { x = p[0]; y = p[1]; z = p[2]; w = p[3]; } in QUAT()
71 QUAT(const QUAT_& rhs) { x = rhs.x; y = rhs.y; z = rhs.z; w = rhs.w; } in QUAT()
72 QUAT(f32 fx, f32 fy, f32 fz, f32 fw) { x = fx; y = fy; z = fz; w = fw; } in QUAT()
88 self_type operator - () const { return self_type(-x, -y, -z, -w); }
95 …or == (const self_type& rhs) const { return x == rhs.x && y == rhs.y && z == rhs.z && w == rhs.w; }
96 …or != (const self_type& rhs) const { return x != rhs.x || y != rhs.y || z != rhs.z || w != rhs.w; }
Dmath_Matrix43.h155 column.w = this->m[3][index]; in GetColumn()
166 this->m[3][index] = column.w; in SetColumn()
/CTR-SDK-0.14.4/include/nn/
Dtypes.h118 u32 w[3]; member
124 u32 w[4]; member
/CTR-SDK-0.14.4/include/nn/config/compiler/
Dtypes_gcc.h118 u32 w[3]; member
124 u32 w[4]; member
/CTR-SDK-0.14.4/sources/libraries/math/
Dmath_Quaternion.cpp45 NN_MATH_REPORT("<%f, %f, %f, %f>", x, y, z, w); in Report()
Dmath_Vector4.cpp48 NN_MATH_REPORT("<%f, %f, %f, %f>", x, y, z, w); in Report()
Dmath_Geometry.cpp541 VEC3 w(S1->P0 - S2->P0); in DistSqSegment3ToSegment3() local
545 f32 d = VEC3Dot(&u, &w); in DistSqSegment3ToSegment3()
546 f32 e = VEC3Dot(&v, &w); in DistSqSegment3ToSegment3()
609 VEC3 dP = w + (u * sc) - (v * tc); // = S1(sc) - S2(tc) in DistSqSegment3ToSegment3()
1117 VEC3 w; in IntersectionRay3Sphere() local
1118 VEC3Sub(&w, &sphere->C, &R->P); in IntersectionRay3Sphere()
1119 f32 wsq = VEC3SquareLen(&w); in IntersectionRay3Sphere()
1120 f32 proj = VEC3Dot(&w, &R->d); in IntersectionRay3Sphere()
/CTR-SDK-0.14.4/include/nn/gr/CTR/
Dgr_Utility.h112 *command++ = nn::math::F32AsU32( vec4.w ); in MakeUniformCommandVS()
136 *command++ = nn::math::F32AsU32( vec4[0].w ); in MakeUniformCommandVS()
144 *command++ = nn::math::F32AsU32( vec4[i].w ); in MakeUniformCommandVS()
228 *command++ = nn::math::F32AsU32( vec4.w ); // a in MakeUniformCommandGS()
251 *command++ = nn::math::F32AsU32( vec4[0].w ); in MakeUniformCommandGS()
259 *command++ = nn::math::F32AsU32( vec4[i].w ); in MakeUniformCommandGS()
/CTR-SDK-0.14.4/include/nn/font/CTR/
Dfont_RectDrawerCommand.h132 #define NN_FONT_CMD_SET_SCISSOR( x, y, w, h, cbSz ) \ argument
137 NN_FONT_CMD_SCISSOR_VAL( (x) + (w) - 1, (cbSz).width ) \
/CTR-SDK-0.14.4/include/nn/y2r/CTR/
Dy2r_Api.h75 void SetDitheringWeightParams( const DitheringWeightParams & w );
514 inline void SetDitheringWeightParams( const DitheringWeightParams & w ) in SetDitheringWeightParams() argument
516 detail::SetDitheringWeightParams(w); in SetDitheringWeightParams()
Dy2r_Y2r.h131 static nn::Result SetDitheringWeightParams( const nn::y2r::CTR::DitheringWeightParams& w );
/CTR-SDK-0.14.4/include/nn/gx/CTR/
Dgx_MacroFragment.h126 #define PICA_CMD_DATA_FRAG_LIGHT_TYPE(w, twoSideDiffuse, geomFactor0, geomFactor1) \ argument
127 ( ((w) == 0) ? 1 : 0 | \
/CTR-SDK-0.14.4/include/gles2/
Dgl2.h628 … void GL_APIENTRY glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
630 GL_APICALL void GL_APIENTRY glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w
643 …oid GL_APIENTRY glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
/CTR-SDK-0.14.4/include/nn/fslow/
Dfslow_IArchive.h158 bit32 w[ByteSize / sizeof(bit32)]; member
/CTR-SDK-0.14.4/include/nn/util/
Dutil_Color.h604 : r(vec.x), g(vec.y), b(vec.z), a(vec.w) in FloatColor()
665 this->Set( vec.x, vec.y, vec.z, vec.w );

12