tests/test_szmul.c

Thu, 05 Dec 2024 01:51:47 +0100

author
Mike Becker <universe@uap-core.de>
date
Thu, 05 Dec 2024 01:51:47 +0100
changeset 999
84fc42b04d3b
parent 970
c9b02747cfc5
permissions
-rw-r--r--

add cx_array_reserve() and several more array convenience functions

970
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 /*
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 *
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 * Copyright 2023 Mike Becker, Olaf Wintermann All rights reserved.
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 *
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 * Redistribution and use in source and binary forms, with or without
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 * modification, are permitted provided that the following conditions are met:
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 *
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 * 1. Redistributions of source code must retain the above copyright
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 * notice, this list of conditions and the following disclaimer.
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 *
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 * 2. Redistributions in binary form must reproduce the above copyright
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 * notice, this list of conditions and the following disclaimer in the
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 * documentation and/or other materials provided with the distribution.
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 *
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 * POSSIBILITY OF SUCH DAMAGE.
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 */
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 #include "cx/test.h"
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 CX_TEST(test_szmul) {
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 size_t r;
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33 int e;
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35 CX_TEST_DO {
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36 e = cx_szmul(5, 7, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
38 CX_TEST_ASSERT(r == 35);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
39
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
40 size_t s = SIZE_MAX & ~3;
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42 e = cx_szmul(s / 4, 2, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 CX_TEST_ASSERT(r == s / 2);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
46 e = cx_szmul(2, s / 4, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
47 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
48 CX_TEST_ASSERT(r == s / 2);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
49
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50 e = cx_szmul(s / 4, 4, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
51 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
52 CX_TEST_ASSERT(r == s);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
53
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
54 e = cx_szmul(4, s / 4, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
55 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
56 CX_TEST_ASSERT(r == s);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
57
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
58 e = cx_szmul(s / 4, 5, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
59 CX_TEST_ASSERT(e != 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
60
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
61 e = cx_szmul(5, s / 4, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
62 CX_TEST_ASSERT(e != 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
63
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
64 e = cx_szmul(SIZE_MAX - 4, 0, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
65 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
66 CX_TEST_ASSERT(r == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
67
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
68 e = cx_szmul(0, SIZE_MAX - 1, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
69 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
70 CX_TEST_ASSERT(r == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
71
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
72 e = cx_szmul(SIZE_MAX, 0, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
73 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
74 CX_TEST_ASSERT(r == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
75
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
76 e = cx_szmul(0, SIZE_MAX, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
77 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
78 CX_TEST_ASSERT(r == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
79
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
80 e = cx_szmul(0, 0, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
81 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
82 CX_TEST_ASSERT(r == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
83 }
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
84 }
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
85
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
86 #ifdef CX_SZMUL_BUILTIN
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
87
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
88 // also test the custom implementation
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
89 #undef CX_SZMUL_BUILTIN
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
90
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
91 #include "../src/szmul.c"
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
92
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
93 #define CX_SZMUL_BUILTIN
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
94
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
95 CX_TEST(test_szmul_impl) {
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
96 size_t r;
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
97 int e;
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
98
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
99 CX_TEST_DO {
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
100 e = cx_szmul_impl(5, 7, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
101 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
102 CX_TEST_ASSERT(r == 35);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
103
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
104 size_t s = SIZE_MAX & ~3;
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
105
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
106 e = cx_szmul_impl(s / 4, 2, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
107 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
108 CX_TEST_ASSERT(r == s / 2);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
109
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
110 e = cx_szmul_impl(2, s / 4, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
111 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
112 CX_TEST_ASSERT(r == s / 2);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
113
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
114 e = cx_szmul_impl(s / 4, 4, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
115 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
116 CX_TEST_ASSERT(r == s);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
117
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
118 e = cx_szmul_impl(4, s / 4, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
119 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
120 CX_TEST_ASSERT(r == s);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
121
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
122 e = cx_szmul_impl(s / 4, 5, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
123 CX_TEST_ASSERT(e != 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
124
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
125 e = cx_szmul_impl(5, s / 4, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
126 CX_TEST_ASSERT(e != 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
127
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
128 e = cx_szmul_impl(SIZE_MAX - 4, 0, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
129 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
130 CX_TEST_ASSERT(r == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
131
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
132 e = cx_szmul_impl(0, SIZE_MAX - 1, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
133 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
134 CX_TEST_ASSERT(r == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
135
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
136 e = cx_szmul_impl(SIZE_MAX, 0, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
137 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
138 CX_TEST_ASSERT(r == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
139
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
140 e = cx_szmul_impl(0, SIZE_MAX, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
141 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
142 CX_TEST_ASSERT(r == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
143
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
144 e = cx_szmul_impl(0, 0, &r);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
145 CX_TEST_ASSERT(e == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
146 CX_TEST_ASSERT(r == 0);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
147 }
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
148 }
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
149
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
150 #endif // CX_SZMUL_BUILTIN
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
151
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
152
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
153 CxTestSuite *cx_test_suite_szmul(void) {
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
154 CxTestSuite *suite = cx_test_suite_new("szmul");
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
155
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
156 cx_test_register(suite, test_szmul);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
157 #ifdef CX_SZMUL_BUILTIN
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
158 cx_test_register(suite, test_szmul_impl);
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
159 #endif
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
160
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
161 return suite;
c9b02747cfc5 move szmul to common.h
Mike Becker <universe@uap-core.de>
parents:
diff changeset
162 }

mercurial