Home | History | Annotate | Download | only in tests
      1 /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
      2  * Use of this source code is governed by a BSD-style license that can be
      3  * found in the LICENSE file.
      4  */
      5 
      6 #ifndef DSP_TEST_UTIL_H_
      7 #define DSP_TEST_UTIL_H_
      8 
      9 #ifdef __cplusplus
     10 extern "C" {
     11 #endif
     12 
     13 /* Tests if the system supports denormal numbers. Returns 1 if so, 0
     14  * otherwise.*/
     15 int dsp_util_has_denormal();
     16 
     17 /* Clears floating point exceptions. For debugging only. */
     18 void dsp_util_clear_fp_exceptions();
     19 
     20 /* Prints floating point exceptions to stdout. For debugging only. */
     21 void dsp_util_print_fp_exceptions();
     22 
     23 #ifdef __cplusplus
     24 } /* extern "C" */
     25 #endif
     26 
     27 #endif /* DSP_TEST_UTIL_H_ */
     28