~ubuntu-branches/ubuntu/utopic/nettle/utopic

« back to all changes in this revision

Viewing changes to asm.m4

  • 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:
 
1
divert(-1)
1
2
changequote(<,>)dnl
2
3
dnl (progn (modify-syntax-entry ?< "(>") (modify-syntax-entry ?> ")<") )
3
4
 
4
5
dnl FORTRAN style comment character
5
6
define(<C>, <
6
7
dnl>)dnl
 
8
dnl Disable m4 comment processing, since the default, #, is used for
 
9
dnl constants on some architectures, in particular ARM.
 
10
changecom()dnl
7
11
 
8
12
dnl Including files from the srcdir
9
13
define(<include_src>, <include(srcdir/$1)>)dnl
22
26
<ifelse(ELF_STYLE,yes,
23
27
<.size C_NAME($1), . - C_NAME($1)>,<>)>)
24
28
 
25
 
dnl Argument to ALIGN is always logarithmic
26
 
dnl Can't use << operator with our choice of quote characters...
 
29
define(<m4_log2>, <m4_log2_internal($1,1,0)>)
 
30
define(<m4_log2_internal>,
 
31
<ifelse($3, 10, <not-a-power-of-two>,
 
32
$1, $2, $3,
 
33
<m4_log2_internal($1, eval(2*$2), eval(1 + $3))>)>)
 
34
 
 
35
dnl Argument to ALIGN is always in bytes, and converted to a
 
36
dnl logarithmic .align if necessary.
 
37
 
27
38
define(<ALIGN>,
28
 
<.align ifelse(ALIGN_LOG,yes,$1,eval(2 ** $1))>)
 
39
<.align ifelse(ALIGN_LOG,yes,<m4_log2($1)>,$1)
 
40
>)
29
41
 
30
42
dnl Struct defining macros
31
43
 
63
75
  STRUCT(TABLE1, AES_TABLE_SIZE)
64
76
  STRUCT(TABLE2, AES_TABLE_SIZE)
65
77
  STRUCT(TABLE3, AES_TABLE_SIZE)
 
78
 
 
79
divert