blob: ffd8aac23e1cfa6ab37fdda220893689133ba6fa [file] [log] [blame]
Laurence Lundblade68a13352018-09-23 02:19:54 -07001/*==============================================================================
Laurence Lundblade2d85ce42018-10-12 14:12:47 +08002 float_tests.h -- tests for float and conversion to/from half-precision
Laurence Lundblade781fd822018-10-01 09:37:52 -07003
Laurence Lundbladed92a6162018-11-01 11:38:35 +07004 Copyright (c) 2018, Laurence Lundblade.
5 All rights reserved.
Laurence Lundblade3aee3a32018-12-17 16:17:45 -08006
Laurence Lundblade0dbc9172018-11-01 14:17:21 +07007Redistribution and use in source and binary forms, with or without
8modification, are permitted provided that the following conditions are
9met:
10 * Redistributions of source code must retain the above copyright
11 notice, this list of conditions and the following disclaimer.
12 * Redistributions in binary form must reproduce the above
13 copyright notice, this list of conditions and the following
14 disclaimer in the documentation and/or other materials provided
15 with the distribution.
16 * The name "Laurence Lundblade" may not be used to
17 endorse or promote products derived from this software without
18 specific prior written permission.
Laurence Lundblade3aee3a32018-12-17 16:17:45 -080019
Laurence Lundblade0dbc9172018-11-01 14:17:21 +070020THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
21WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
22MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
23ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
24BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
27BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
29OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
30IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Laurence Lundbladed711fb22018-09-26 14:35:22 -070031 ==============================================================================*/
Laurence Lundblade68a13352018-09-23 02:19:54 -070032// Created by Laurence Lundblade on 9/19/18.
Laurence Lundblade781fd822018-10-01 09:37:52 -070033
Laurence Lundblade68a13352018-09-23 02:19:54 -070034
Laurence Lundblade2d85ce42018-10-12 14:12:47 +080035#ifndef float_tests_h
36#define float_tests_h
37
Laurence Lundbladebb474be2018-10-22 11:53:21 +053038int HalfPrecisionDecodeBasicTests(void);
Laurence Lundblade68a13352018-09-23 02:19:54 -070039
Laurence Lundbladebb474be2018-10-22 11:53:21 +053040int DoubleAsSmallestTest(void);
Laurence Lundbladed711fb22018-09-26 14:35:22 -070041
Laurence Lundbladebb474be2018-10-22 11:53:21 +053042int HalfPrecisionAgainstRFCCodeTest(void);
Laurence Lundbladed711fb22018-09-26 14:35:22 -070043
Laurence Lundblade68a13352018-09-23 02:19:54 -070044
Laurence Lundblade2d85ce42018-10-12 14:12:47 +080045#endif /* float_tests_h */