📄 nu_math.h
字号:
/*************************************************************************/
/* */
/* Copyright (c) 1999 Accelerated Technology, Inc. */
/* */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the */
/* subject matter of this material. All manufacturing, reproduction, */
/* use, and sales rights pertaining to this subject matter are governed */
/* by the license agreement. The recipient of this software implicitly */
/* accepts the terms of the license. */
/* */
/*************************************************************************/
/*************************************************************************/
/* */
/* FILE NAME VERSION */
/* */
/* Nu_math.h 1.9 */
/* */
/* COMPONENT */
/* */
/* All */
/* */
/* DESCRIPTION */
/* */
/* Fixed-point math include file */
/* */
/* AUTHOR */
/* */
/* Giac Dinh , Accelerated Technology, Inc. */
/* */
/* DATA STRUCTURES */
/* */
/* None */
/* */
/* FUNCTIONS */
/* */
/* None */
/* */
/* DEPENDENCIES */
/* */
/* None */
/* */
/* HISTORY */
/* */
/* NAME DATE REMARKS */
/* */
/* */
/*************************************************************************/
//#define CPU_FLOAT
#ifdef CPU_FLOAT
#include <math.h>
#else
#define FIXPOINT
long Fix_mul(long first, long second);
long Fix_div(long a, long b);
long Fix_sqrt(long root);
long iCos(long Angle);
long iSin(long Angle);
long Nu_asin(long radian);
typedef struct _dblFix{ /* 64-bit fixed point */
long fUpper;
unsigned long fLower;
} dblFix;
int dFix_add(dblFix *first, dblFix *second, dblFix *result);
int dFix_sub(dblFix *first, dblFix *second, dblFix *result);
int dFix_mul(dblFix *first, dblFix *second, dblFix *result);
int dFix_div(dblFix *first, dblFix *second, dblFix *result);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -