📄 m_apm_lc.h
字号:
/* * M_APM - m_apm_lc.h * * Copyright (C) 1999 Michael C. Ring * * Permission to use, copy, and distribute this software and its * documentation for any purpose with or without fee is hereby granted, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation. * * Permission to modify the software is granted, but not the right to * distribute the modified code. Modifications are to be distributed * as patches to released version. * * This software is provided "as is" without express or implied warranty. *//* * This is the local header file needed to build the library * * $Log: m_apm_lc.h,v $ * Revision 1.13 1999/07/09 22:46:10 mike * add skip limit integer * * Revision 1.12 1999/07/08 23:35:20 mike * change constant * * Revision 1.11 1999/07/08 22:55:38 mike * add new constant * * Revision 1.10 1999/06/23 01:08:11 mike * added constant '15' * * Revision 1.9 1999/06/20 23:38:11 mike * updated for new prototypes * * Revision 1.8 1999/06/20 23:30:03 mike * added new constants * * Revision 1.7 1999/06/20 19:23:12 mike * delete constants no longer needed * * Revision 1.6 1999/06/20 18:50:21 mike * added more constants * * Revision 1.5 1999/06/19 20:37:30 mike * add stack prototypes * * Revision 1.4 1999/05/31 23:01:38 mike * delete some unneeded constants * * Revision 1.3 1999/05/15 02:23:28 mike * fix define for M_COS * * Revision 1.2 1999/05/15 02:16:56 mike * add check for number of decimal places * * Revision 1.1 1999/05/12 20:51:22 mike * Initial revision * * $Id: m_apm_lc.h,v 1.13 1999/07/09 22:46:10 mike Exp $ */#ifndef M__APM_LOCAL_INC#define M__APM_LOCAL_INC#include <stdio.h>#include <stdlib.h>#include <string.h>#include <memory.h>#include "m_apm.h"#ifndef TRUE#define TRUE 1#endif#ifndef FALSE#define FALSE 0#endif#define M_APM_IDENT 0x6BCC9AE5/* number of digits in the global constants, PI, E, etc */#define VALID_DECIMAL_PLACES 128/* just some unique int's for error messages */#define M_LOG10 0xA01#define M_POW 0xA11#define M_EXP 0xA12#define M_SIN 0xA31#define M_COS 0xA32#define M_LIMIT 0xA41#define M_ASIN 0xA51#define M_ACOS 0xA52#define M_ATAN2 0xA54extern int MM_skip_limit_PI_check;/* * constants not in m_apm.h */extern M_APM MM_0_5;extern M_APM MM_0_85;extern M_APM MM_Fifteen;extern M_APM MM_5x_008;extern M_APM MM_5x_64R;extern M_APM MM_5x_Eight;extern M_APM MM_5x_Sixteen;extern M_APM MM_5x_Twenty;/* * prototypes for internal functions */extern void M_init_trig_globals(void);extern void M_raw_exp(M_APM, int, M_APM);extern void M_raw_sin(M_APM, int, M_APM);extern void M_raw_cos(M_APM, int, M_APM);extern void M_5x_sin(M_APM, int, M_APM);extern void M_4x_cos(M_APM, int, M_APM);extern void M_5x_do_it(M_APM, int, M_APM);extern void M_4x_do_it(M_APM, int, M_APM);extern M_APM M_get_stack_var(void);extern void M_restore_stack(int);extern void M_cos_to_sin(M_APM, int, M_APM);extern void M_limit_angle_to_pi(M_APM, int, M_APM);extern void M_get_sqrt_guess(M_APM, M_APM);extern void M_get_log_guess(M_APM, M_APM);extern void M_get_asin_guess(M_APM, M_APM);extern void M_get_acos_guess(M_APM, M_APM);extern void M_init_util_data(void);extern void M_get_div_rem(int,UCHAR *,UCHAR *);extern void M_get_div_rem_10(int,UCHAR *,UCHAR *);extern void M_apm_normalize(M_APM);extern void M_apm_scale(M_APM, int);extern void M_apm_pad(M_APM, int);extern void M_check_dec_places(int, int);extern int M_strposition(char *,char *);extern char *M_lowercase(char *);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -