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

📄 cinst.cpp

📁 vxworks源码源码解读是学习vxworks的最佳途径
💻 CPP
字号:
/* This has been copied from the gnu source tree *//* Make all changes there, not here! */#ifdef __cplusplusextern "C" {#endif#ifndef _N_char __cinst_o = 0;#elsechar _N_ = 0;#endif#ifdef __cplusplus}#endif#include "vxWorks.h"// Instantiation file for the -*- C++ -*- complex number classes.// Copyright (C) 1994 Free Software Foundation/* Begin VxWorks specific */#ifndef _NO_LONG_DOUBLE_#define _NO_LONG_DOUBLE_#endif#if !defined (_NO_LONG_DOUBLE_) || ! defined (LD)/* End VxWorks specific */#ifdef Ftypedef float f;#endif#ifdef Dtypedef double f;#endif#ifdef LDtypedef long double f;#endif#if defined (MAIN) && defined (__GNUG__)#ifdef F#pragma implementation "fcomplex"#endif#ifdef D#pragma implementation "dcomplex"#endif#ifdef LD#pragma implementation "ldcomplex"#endif#endif#if 0#define _G_NO_EXTERN_TEMPLATES#endif#include <std/complext.cc>typedef complex<f> c;typedef const c& ccr;#ifdef MAINtemplate class complex<f>;template c& __doapl (c*, ccr);template c& __doaml (c*, ccr);template c& __doami (c*, ccr);template c& __doadv (c*, ccr);#endif#ifdef ADDCCtemplate c operator+ (ccr, ccr);#endif#ifdef ADDCFtemplate c operator+ (ccr, f);#endif#ifdef ADDFCtemplate c operator+ (f, ccr);#endif#ifdef SUBCCtemplate c operator- (ccr, ccr);#endif#ifdef SUBCFtemplate c operator- (ccr, f);#endif#ifdef SUBFCtemplate c operator- (f, ccr);#endif#ifdef MULCCtemplate c operator* (ccr, ccr);#endif#ifdef MULCFtemplate c operator* (ccr, f);#endif#ifdef MULFCtemplate c operator* (f, ccr);#endif#ifdef DIVCCtemplate c operator/ (ccr, ccr);#endif#ifdef DIVCFtemplate c operator/ (ccr, f);#endif#ifdef DIVFCtemplate c operator/ (f, ccr);#endif#ifdef PLUStemplate c operator+ (ccr);#endif#ifdef MINUStemplate c operator- (ccr);#endif#ifdef EQCCtemplate bool operator== (ccr, ccr);#endif#ifdef EQCFtemplate bool operator== (ccr, f);#endif#ifdef EQFCtemplate bool operator== (f, ccr);#endif#ifdef NECCtemplate bool operator!= (ccr, ccr);#endif#ifdef NECFtemplate bool operator!= (ccr, f);#endif#ifdef NEFCtemplate bool operator!= (f, ccr);#endif#ifdef ABStemplate f abs (ccr);#endif#ifdef ARGtemplate f arg (ccr);#endif#ifdef POLARtemplate c polar (f, f);#endif#ifdef CONJtemplate c conj (ccr);#endif#ifdef NORMtemplate f norm (ccr);#endif#ifdef COStemplate c cos (ccr);#endif#ifdef COSHtemplate c cosh (ccr);#endif#ifdef EXPtemplate c exp (ccr);#endif#ifdef LOGtemplate c log (ccr);#endif#ifdef POWCCtemplate c pow (ccr, ccr);#endif#ifdef POWCFtemplate c pow (ccr, f);#endif#ifdef POWCItemplate c pow (ccr, int);#endif#ifdef POWFCtemplate c pow (f, ccr);#endif#ifdef SINtemplate c sin (ccr);#endif#ifdef SINHtemplate c sinh (ccr);#endif#ifdef SQRTtemplate c sqrt (ccr);#endif#ifdef EXTRACTtemplate istream& operator>> (istream&, complex<f>&);#endif#ifdef INSERTtemplate ostream& operator<< (ostream&, complex<f>);#endif/* Begin VxWorks specific */#endif /* #if !defined (_NO_LONG_DOUBLE_) || !defined (LD)/* End VxWorks specific */

⌨️ 快捷键说明

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