~ubuntu-branches/ubuntu/vivid/nettle/vivid

« back to all changes in this revision

Viewing changes to camellia-internal.h

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-05-07 22:57:14 UTC
  • mfrom: (8.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130507225714-s331yr8ov53dtt17
Tags: 2.7-2
Tag some (ECC related) symbols that only exist on some architectures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
/* Copyright (C) 2006,2007
7
7
 * NTT (Nippon Telegraph and Telephone Corporation).
8
8
 *
9
 
 * Copyright (C) 2010 Niels M�ller
 
9
 * Copyright (C) 2010 Niels Möller
10
10
 *
11
11
 * This library is free software; you can redistribute it and/or
12
12
 * modify it under the terms of the GNU Lesser General Public
45
45
 *  macros
46
46
 */
47
47
 
48
 
/* Rotation of 32-bit values. */
49
 
#define ROL32(bits, x) (((x) << (bits)) | ((x) >> (32 - (bits))))
50
 
 
51
48
/* Destructive rotation of 128 bit values. */
52
 
#define ROL128(bits, xl, xr) do {               \
 
49
#define ROTL128(bits, xl, xr) do {              \
53
50
    uint64_t __rol128_t = (xl);                      \
54
51
    (xl) = ((xl) << (bits)) | ((xr) >> (64 - (bits)));     \
55
52
    (xr) = ((xr) << (bits)) | (__rol128_t >> (64 - (bits)));    \