"Fossies" - the Fresh Open Source Software Archive
Member "stress-ng-0.10.00/test/test-aligned-128.c" (8 Jul 2019, 1314 Bytes) of package /linux/privat/stress-ng-0.10.00.tar.xz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard
) with prefixed line numbers and code folding
Alternatively you can here view
the uninterpreted source code file.
2 * Copyright (C) 2017-2019 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * This code is a complete clean re-write of the stress tool by
19 * Colin Ian King <email@example.com> and attempts to be
20 * backwardly compatible with the stress tool by Amos Waterland
21 * <firstname.lastname@example.org> but has more stress tests and more
22 * functionality.
25 #include <stddef.h>
27 int __attribute__ ((aligned(128))) test_align128(void);
29 int main(void)
31 const ptrdiff_t addr = (ptrdiff_t)test_align128;
35 return addr & 127;
38 int __attribute__ ((aligned(128))) test_align128(void)
40 return 0;