Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/cmd/dsslib/ip_t/fv.h
1810 views
1
/***********************************************************************
2
* *
3
* This software is part of the ast package *
4
* Copyright (c) 2000-2011 AT&T Intellectual Property *
5
* and is licensed under the *
6
* Eclipse Public License, Version 1.0 *
7
* by AT&T Intellectual Property *
8
* *
9
* A copy of the License is available at *
10
* http://www.eclipse.org/org/documents/epl-v10.html *
11
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
12
* *
13
* Information and Software Systems Research *
14
* AT&T Research *
15
* Florham Park NJ *
16
* *
17
* Glenn Fowler <[email protected]> *
18
* Phong Vo <[email protected]> *
19
* *
20
***********************************************************************/
21
#pragma prototyped
22
/*
23
* unsigned fixed vector arithmetic interface definitions
24
*
25
* Glenn Fowler
26
* AT&T Research
27
*/
28
29
#ifndef _FV_H
30
#define _FV_H
31
32
#include <ast.h>
33
34
#if _BLD_pt && defined(__EXPORT__)
35
#define extern __EXPORT__
36
#endif
37
38
extern int fvcmp(int, const unsigned char*, const unsigned char*);
39
extern int fvcpy(int, unsigned char*, const unsigned char*);
40
extern int fvset(int, unsigned char*, long);
41
42
extern int fvand(int, unsigned char*, const unsigned char*, const unsigned char*);
43
extern int fvior(int, unsigned char*, const unsigned char*, const unsigned char*);
44
extern int fvxor(int, unsigned char*, const unsigned char*, const unsigned char*);
45
46
extern int fvlsh(int, unsigned char*, const unsigned char*, int);
47
extern int fvrsh(int, unsigned char*, const unsigned char*, int);
48
extern int fvnot(int, unsigned char*, const unsigned char*);
49
extern int fvodd(int, const unsigned char*);
50
51
extern int fvadd(int, unsigned char*, const unsigned char*, const unsigned char*);
52
extern int fvsub(int, unsigned char*, const unsigned char*, const unsigned char*);
53
extern int fvmpy(int, unsigned char*, const unsigned char*, const unsigned char*);
54
extern int fvdiv(int, unsigned char*, unsigned char*, const unsigned char*, const unsigned char*);
55
56
extern unsigned char* fvplo(int, int, unsigned char*, const unsigned char*);
57
extern unsigned char* fvphi(int, int, unsigned char*, const unsigned char*);
58
59
extern char* fmtfv(int, const unsigned char*, int, int, int);
60
extern int strfv(int, unsigned char*, const char*, char**, int, int);
61
62
#undef extern
63
64
#define fvcpy(n,r,a) memcpy(r,a,n)
65
66
#endif
67
68