Skip to content

Commit 6824b9b

Browse files
committed
float16: add missing config file.
1 parent ef7728d commit 6824b9b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

config/return_float16.cc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) 2017-2022, University of Tennessee. All rights reserved.
2+
// SPDX-License-Identifier: BSD-3-Clause
3+
// This program is free software: you can redistribute it and/or modify it under
4+
// the terms of the BSD 3-Clause license. See the accompanying LICENSE file.
5+
6+
#include <stdio.h>
7+
8+
#include "config.h"
9+
10+
//------------------------------------------------------------------------------
11+
int main()
12+
{
13+
_Float16 a = 0.1;
14+
_Float16 b = 0.2;
15+
_Float16 c = a + b;
16+
17+
printf( "%f + %f = %f -- expected 0.3\n", (float)a, (float)b, (float)c );
18+
return 0;
19+
}

0 commit comments

Comments
 (0)