source: CIVL/examples/compare/provesa/runtime_dense_reverse/ad_rev.h

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[4d61ad0]1
2#ifndef __AD_REV_HPP_
3#define __AD_REV_HPP_
4
5#ifndef TRUE
6#define TRUE 1
7#endif
8
9#ifndef FALSE
10#define FALSE 0
11#endif
12
13typedef struct modeType
14{
15 int arg_store;
16 int arg_restore;
17 int res_store;
18 int res_restore;
19 int plain;
20 int tape;
21 int adjoint;
22}__ADIC_RevType;
23
24extern __ADIC_RevType our_rev_mode;
25
26void __ADIC_RevInit(__ADIC_RevType *adic_rev);
27
28void __ADIC_RevPlain(__ADIC_RevType *adic_rev);
29
30void __ADIC_RevTape(__ADIC_RevType *adic_rev);
31
32void __ADIC_RevAdjoint(__ADIC_RevType *adic_rev);
33
34void __ADIC_RevStorePlain(__ADIC_RevType *adic_rev);
35
36void __ADIC_RevRestoreTape(__ADIC_RevType *adic_rev);
37
38/* int isRevModePlain(__ADIC_RevType our_rev_mode);
39 int isRevModeTape(__ADIC_RevType our_rev_mode);
40 int isRevModeAdjoint(__ADIC_RevType our_rev_mode);
41 int isRevModeArgStore(__ADIC_RevType our_rev_mode);
42 int isRevModeArgRestore(__ADIC_RevType our_rev_mode);
43 int isRevModeRedStore(__ADIC_RevType our_rev_mode);
44 int isRevModeResRestore(__ADIC_RevType our_rev_mode);
45
46 __ADIC_RevType getRevMode();*/
47
48#endif
49
Note: See TracBrowser for help on using the repository browser.