This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from CMATHL/development
Development
- Loading branch information
Showing
113 changed files
with
1,264 additions
and
1,220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,23 @@ | ||
#ifndef CML_H | ||
#define CML_H | ||
|
||
#include "cml/config.h" | ||
#include "cml/default.h" | ||
#include "cml/errno.h" | ||
#include "cml/ieee.h" | ||
#include "cml/inline.h" | ||
#include "cml/machine.h" | ||
#include "cml/minmax.h" | ||
|
||
#ifndef PREDEF_STANDARD_C11 | ||
#undef __CML_NO_GENERIC | ||
#define __CML_NO_GENERIC | ||
#endif | ||
|
||
#define __CML_ARGS_FIRST(A, ...) A | ||
|
||
#ifndef __CML_TYPE | ||
#define __CML_TYPE(__e, __t) \ | ||
__builtin_types_compatible_p(__typeof(__e), __t) | ||
#endif | ||
|
||
#ifndef __CML_SAME_TYPE | ||
#define __CML_SAME_TYPE(__a, __b) \ | ||
__builtin_types_compatible_p(__typeof(__a), __typeof(__b)) | ||
#endif | ||
|
||
#include <cml/config.h> | ||
#include <cml/default.h> | ||
#include <cml/errno.h> | ||
#include <cml/ieee.h> | ||
#include <cml/inline.h> | ||
#include <cml/machine.h> | ||
#include <cml/minmax.h> | ||
|
||
#if defined CML_NO_ALIASES || defined __CML_NO_GENERIC | ||
#include "cml/math.h" | ||
#include <cml/math.h> | ||
#else | ||
#include "cml/tgmath.h" | ||
#include <cml/tgmath.h> | ||
#endif | ||
|
||
#include "cml/deriv.h" | ||
#include "cml/diff.h" | ||
#include "cml/easings.h" | ||
#include "cml/structures.h" | ||
#include <cml/deriv.h> | ||
#include <cml/diff.h> | ||
#include <cml/easings.h> | ||
#include <cml/structures.h> | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef CML_COMPLEX_BASIC_FUNC_H | ||
#define CML_COMPLEX_BASIC_FUNC_H | ||
|
||
__CML_BEGIN_DECLS | ||
|
||
double complex_abs(complex_t); | ||
double complex_arg(complex_t); | ||
double complex_logabs(complex_t); | ||
|
||
complex_t complex_add(complex_t, complex_t); | ||
complex_t complex_conj(complex_t); | ||
complex_t complex_div(complex_t, complex_t); | ||
complex_t complex_inverse(complex_t); | ||
complex_t complex_mul(complex_t, complex_t); | ||
complex_t complex_scalar_mul(complex_t, double); | ||
complex_t complex_sub(complex_t, complex_t); | ||
|
||
complex_t complex_add_real(complex_t, double); /* r=a+x */ | ||
complex_t complex_sub_real(complex_t, double); /* r=a-x */ | ||
complex_t complex_mul_real(complex_t, double); /* r=a*x */ | ||
complex_t complex_div_real(complex_t, double); /* r=a/x */ | ||
|
||
complex_t complex_add_imag(complex_t, double); /* r=a+iy */ | ||
complex_t complex_sub_imag(complex_t, double); /* r=a-iy */ | ||
complex_t complex_mul_imag(complex_t, double); /* r=a*iy */ | ||
complex_t complex_div_imag(complex_t, double); /* r=a/iy */ | ||
|
||
__CML_END_DECLS | ||
|
||
#endif |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
#ifndef CML_H | ||
#error "Never use <cml/const.h> directly; include <cml.h> instead." | ||
#endif | ||
|
||
#ifndef CML_CONST_H | ||
#define CML_CONST_H | ||
|
||
#include "const/num.h" | ||
#include <cml/const/num.h> | ||
|
||
#include "const/cgs.h" | ||
#include "const/mks.h" | ||
#include <cml/const/cgs.h> | ||
#include <cml/const/mks.h> | ||
|
||
#include "const/cgsm.h" | ||
#include "const/mksa.h" | ||
#include <cml/const/cgsm.h> | ||
#include <cml/const/mksa.h> | ||
|
||
#endif |
Oops, something went wrong.