aboutsummaryrefslogtreecommitdiff
path: root/gost_grasshopper_math.h
diff options
context:
space:
mode:
authorVitaly Chikunov <vt@altlinux.org>2020-09-20 21:21:22 +0300
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2020-09-21 11:34:12 +0300
commit8fff4a245e57cd2e3479a35cf5a8be534bee5e1c (patch)
treea2a9cf50f387f8ee7488cc840124ab287152620b /gost_grasshopper_math.h
parent47be42da87cb9bf9bad6f415c442b586ce0752ef (diff)
downloadgost-engine-8fff4a245e57cd2e3479a35cf5a8be534bee5e1c.zip
gost-engine-8fff4a245e57cd2e3479a35cf5a8be534bee5e1c.tar.gz
gost-engine-8fff4a245e57cd2e3479a35cf5a8be534bee5e1c.tar.bz2
Compatibility with Solaris 10 (gcc 3.4.3)
Note, you will need to pass `-lsocket -lnsl` to the gcc for socketpair(3SOCKET) to link `test_tls'.
Diffstat (limited to 'gost_grasshopper_math.h')
-rw-r--r--gost_grasshopper_math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gost_grasshopper_math.h b/gost_grasshopper_math.h
index 87d1265..91f276f 100644
--- a/gost_grasshopper_math.h
+++ b/gost_grasshopper_math.h
@@ -66,7 +66,7 @@ static GRASSHOPPER_INLINE void grasshopper_zero128(grasshopper_w128_t* x) {
static GRASSHOPPER_INLINE void grasshopper_copy128(grasshopper_w128_t* to, const grasshopper_w128_t* from) {
#if(GRASSHOPPER_BITS == 8 || GRASSHOPPER_BITS == 16)
- __builtin_memcpy(&to, &from, sizeof(w128_t));
+ __builtin_memcpy(&to, &from, sizeof(grasshopper_w128_t));
#else
int i;
for (i = 0; i < GRASSHOPPER_BIT_PARTS; i++) {