blob: ba31db3d8d72c980fa287335ba87dcdc6b7dcf75 [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 Lundblade68a13352018-09-23 02:19:54 -07006
Laurence Lundbladed92a6162018-11-01 11:38:35 +07007 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are
9 met:
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 * Neither the name of The Linux Foundation nor the names of its
17 contributors, nor the name "Laurence Lundblade" may be used to
18 endorse or promote products derived from this software without
19 specific prior written permission.
Laurence Lundblade68a13352018-09-23 02:19:54 -070020
Laurence Lundbladed92a6162018-11-01 11:38:35 +070021 THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
22 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
23 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
24 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
25 BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
28 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
30 OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
31 IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Laurence Lundbladed711fb22018-09-26 14:35:22 -070032 ==============================================================================*/
Laurence Lundblade68a13352018-09-23 02:19:54 -070033// Created by Laurence Lundblade on 9/19/18.
Laurence Lundblade781fd822018-10-01 09:37:52 -070034
Laurence Lundblade68a13352018-09-23 02:19:54 -070035
Laurence Lundblade2d85ce42018-10-12 14:12:47 +080036#ifndef float_tests_h
37#define float_tests_h
38
39int FloatValuesTest1(void);
Laurence Lundblade68a13352018-09-23 02:19:54 -070040
Laurence Lundbladebb474be2018-10-22 11:53:21 +053041int HalfPrecisionEncodeBasicTests(void);
Laurence Lundblade68a13352018-09-23 02:19:54 -070042
Laurence Lundbladebb474be2018-10-22 11:53:21 +053043int HalfPrecisionDecodeBasicTests(void);
Laurence Lundblade68a13352018-09-23 02:19:54 -070044
Laurence Lundbladebb474be2018-10-22 11:53:21 +053045int HalfPrecisionTransitiveTest(void);
Laurence Lundbladed711fb22018-09-26 14:35:22 -070046
Laurence Lundbladebb474be2018-10-22 11:53:21 +053047int DoubleAsSmallestTest(void);
Laurence Lundbladed711fb22018-09-26 14:35:22 -070048
Laurence Lundbladebb474be2018-10-22 11:53:21 +053049int HalfPrecisionAgainstRFCCodeTest(void);
Laurence Lundbladed711fb22018-09-26 14:35:22 -070050
Laurence Lundblade68a13352018-09-23 02:19:54 -070051
Laurence Lundblade2d85ce42018-10-12 14:12:47 +080052#endif /* float_tests_h */