-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIntegral.h
36 lines (27 loc) · 1.42 KB
/
Integral.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//---------------------------------------------------------------------------//
// Copyright (C) 2008 Tyson Whitehead
//
// This code is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2, or (at
// your option) any later version.
//
//---------------------------------------------------------------------------//
#ifndef INTEGRAL_H_INCLUDED
#define INTEGRAL_H_INCLUDED
#include "Reduce.h"
#define _integral_quotient(x,y,...) reduce_caseReduce2(integral_quotient,x,y,__VA_ARGS__)
#define _integral_remainder(x,y,...) reduce_caseReduce2(integral_remainder,x,y,__VA_ARGS__)
#define _integral_divide(x,y,...) reduce_caseReduce2(integral_divide,x,y,__VA_ARGS__)
#define _integral_modulus(x,y,...) reduce_caseReduce2(integral_modulus,x,y,__VA_ARGS__)
#define _integral_quotientRemainder(x,y,...) reduce_caseReduce2(integral_quotientRemainder,x,y,__VA_ARGS__)
#define _integral_divideModulus(x,y,...) reduce_caseReduce2(integral_divideModulus,x,y,__VA_ARGS__)
#ifndef INTEGRAL_QUALIFIED_ONLY
#define quotient integral_quotient
#define remainder integral_remainder
#define divide integral_divide
#define modulus integral_modulus
#define quotientRemainder integral_quotientRemainder
#define divideModulus integral_divideModulus
#endif // INTEGRAL_QUALIFIED_ONLY
#endif // INTEGRAL_H_INCLUDED