Mercurial > dropbear
comparison dbutil.h @ 640:76097ec1a29a dropbear-tfm
- Bring in original tomsfastmath patch against 0.52 from Peter Turczak
in 2008
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 21 Nov 2011 19:19:57 +0800 |
parents | b956d6151600 |
children | 2b1bb792cd4d |
comparison
equal
deleted
inserted
replaced
518:ce104c8b0be1 | 640:76097ec1a29a |
---|---|
67 void m_burn(void* data, unsigned int len); | 67 void m_burn(void* data, unsigned int len); |
68 void setnonblocking(int fd); | 68 void setnonblocking(int fd); |
69 void disallow_core(); | 69 void disallow_core(); |
70 int m_str_to_uint(const char* str, unsigned int *val); | 70 int m_str_to_uint(const char* str, unsigned int *val); |
71 | 71 |
72 /* Used to force mp_ints to be initialised */ | 72 /* Used to force fp_ints to be initialised */ |
73 #define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL} | 73 #define DEF_FP_INT(X) fp_int X = {{},0, 0} |
74 | 74 |
75 /* Dropbear assertion */ | 75 /* Dropbear assertion */ |
76 #define dropbear_assert(X) do { if (!(X)) { fail_assert(#X, __FILE__, __LINE__); } } while (0) | 76 #define dropbear_assert(X) do { if (!(X)) { fail_assert(#X, __FILE__, __LINE__); } } while (0) |
77 | 77 |
78 #endif /* _DBUTIL_H_ */ | 78 #endif /* _DBUTIL_H_ */ |