⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hxfutils.c

📁 Lido PXA270平台开发板的最新BSP,包括源代码
💻 C
字号:
/* ************************************************************************* *\
**
**    INTEL Corporation Proprietary Information
**
**    This listing is supplied under the terms of a license
**    agreement with INTEL Corporation and may not be copied
**    nor disclosed except in accordance with the terms of
**    that agreement.
**
**    Copyright (c) 2003 Intel Corporation.
**    All Rights Reserved.
**
** ************************************************************************* **
**	FILE: HXFUtils.c
**	DESCRIPTION: This module is broken out because the PVR drivers are very
**		Allergic to having windows.h included. and the PVR Debug utilities
**		are not working.
**
**	AUTHOR: Cian Montgomery
**	CREATED: November 30, 2003
**
 *  $Date: 4/05/04 2:19p $ $Revision: 11 $
 *  $Log: /Intel_Development/Drivers/Marathon/WinCE42/opengles/HXFUtils.c $
 * 
 * 11    4/05/04 2:19p Clmontgo
 * Fixes for Light w/ w != 0 or 1 and Attenuation > 1.0
 *
 * 10    3/25/04 1:27p Clmontgo
 * Optimization of Clip flag generation and VP XForm. Fix for Clipping
 * issue observed in previous version.
\* ************************************************************************* */
#include "HXFTypes.h"
#include <assert.h>

#ifdef DEBUG

typedef struct _HXFWMMXRegister
{
	union
	{
		HUINT64 u64Value;
		struct
		{
			HUINT32 u32Value_0;
			HUINT32 u32Value_1;
		} u32Values;

		struct
		{
			HUINT16 u16Value_0;
			HUINT16 u16Value_1;
			HUINT16 u16Value_2;
			HUINT16 u16Value_3;
		} u16Values;
		struct
		{
			HUINT8 u8Value_0;
			HUINT8 u8Value_1;
			HUINT8 u8Value_2;
			HUINT8 u8Value_3;
			HUINT8 u8Value_4;
			HUINT8 u8Value_5;
			HUINT8 u8Value_6;
			HUINT8 u8Value_7;
		} u8Values;
	};
} HXFWMMXRegister;


typedef struct _HXFWMMXRegisters
{
	HXFWMMXRegister wr0;
	HXFWMMXRegister wr1;
	HXFWMMXRegister wr2;
	HXFWMMXRegister wr3;
	HXFWMMXRegister wr4;
	HXFWMMXRegister wr5;
	HXFWMMXRegister wr6;
	HXFWMMXRegister wr7;
	HXFWMMXRegister wr8;
	HXFWMMXRegister wr9;
	HXFWMMXRegister wr10;
	HXFWMMXRegister wr11;
	HXFWMMXRegister wr12;
	HXFWMMXRegister wr13;
	HXFWMMXRegister wr14;
	HXFWMMXRegister wr15;
} HXFWMMXRegisters;

HXFWMMXRegisters g_WMMXRegisters;

float g_FloatValue = 0.0f;

void HXFAssert(HBOOL x)
{
	assert(x);
}

#endif // defined(DEBUG)

/* ************************************************************************* *\
	FUNCTION: HXFVec3FX_Normalize
	DESCRIPTION:

\* ************************************************************************* */
void HXFAlignedColor4S_Initialize(HXFALIGNEDCOLOR4S* pClr)
{
	pClr->pClr = (HXFCOLOR4S*)((((HUINT32)(pClr->Block)) & HXF_ALIGN_MASK) + HXF_ALIGN);
}


/* ************************************************************************* *\
	FUNCTION: HXFVec3FX_Normalize
	DESCRIPTION:

\* ************************************************************************* */
void HXFAlignedNormal_Initialize(HXFALIGNEDNORMAL* pNrm)
{
	pNrm->pNrm = (HXFNORMAL*)((((HUINT32)(pNrm->Block)) & HXF_ALIGN_MASK) + HXF_ALIGN);
}



/* ************************************************************************* *\
** ************************************************************************* **
** EOF
** ************************************************************************* **
\* ************************************************************************* */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -