5
Last change
on this file since f59d435d was
86e79d7,
checked in by Chris Johns <chrisj@…>, on 04/12/18 at 04:52:36
|
testsuites/dl06: Add a test for RAP format.
This test loads a RAP format file that contains calls that are not
in the kernel and linked from libm. It uses and test rtems-ld.
Update #2769
|
-
Property mode set to
100644
|
File size:
734 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2018 Chris Johns <chrisj@rtems.org>. All rights reserved. |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #include "dl06-o2.h" |
---|
10 | |
---|
11 | #include <stdlib.h> |
---|
12 | #include <math.h> |
---|
13 | |
---|
14 | #include <rtems/test.h> |
---|
15 | |
---|
16 | #define printf(...) rtems_printf(&rtems_test_printer, __VA_ARGS__); |
---|
17 | |
---|
18 | /* |
---|
19 | * Call function that are not part of the RTEMS kernel base image. |
---|
20 | */ |
---|
21 | |
---|
22 | void dl_o2_func1 (unsigned short s[7]) |
---|
23 | { |
---|
24 | printf("libm: lcong48\n") |
---|
25 | lcong48 (s); |
---|
26 | } |
---|
27 | |
---|
28 | double dl_o2_func2 (double d1, double d2) |
---|
29 | { |
---|
30 | printf("libm: atan2\n") |
---|
31 | return atan2 (d1, d2); |
---|
32 | } |
---|
33 | |
---|
34 | double dl_o2_func3 (double d) |
---|
35 | { |
---|
36 | printf("libm: tan\n") |
---|
37 | return tan (d); |
---|
38 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.