Escript
Revision_4320
Main Page
Namespaces
Classes
Files
File List
File Members
escript
src
Dodgy.h
Go to the documentation of this file.
1
2
/*****************************************************************************
3
*
4
* Copyright (c) 2009-2013 by University of Queensland
5
* http://www.uq.edu.au
6
*
7
* Primary Business: Queensland, Australia
8
* Licensed under the Open Software License version 3.0
9
* http://www.opensource.org/licenses/osl-3.0.php
10
*
11
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12
* Development since 2012 by School of Earth Sciences
13
*
14
*****************************************************************************/
15
16
#ifndef ES_DODGY_H
17
#define ES_DODGY_H
18
19
// This file contains functions which do bad things like violate the C standard
20
// Functions in here should not go into general use and should only be used on
21
// systems where the users are willing to accept responsibility for things working.
22
23
// Do not add functions here without explaining why they are problematic
24
25
namespace
escript
26
{
27
// first param is output, next two are input data1 and2 the 3 ints are the size [in doubles]
28
// of the first three params in order
29
typedef
int (*
binOpFnPtr
)(
double
*,
const
double
*,
const
double
*, int, int, int);
30
39
binOpFnPtr
binOpFnPtrFromVoidPtr
(
void
* v);
40
44
void
*
voidPtrFromBinOpFnPtr
(
binOpFnPtr
f);
45
46
}
47
48
#endif
Generated on Fri Mar 15 2013 14:07:50 for Escript by
1.8.1.2