summaryrefslogtreecommitdiff
path: root/cras/src/dsp/tests/dsp_test_util.h
blob: eb97815c4ef54a3cef67cb271db4caa9d022affa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef DSP_TEST_UTIL_H_
#define DSP_TEST_UTIL_H_

#ifdef __cplusplus
extern "C" {
#endif

/* Tests if the system supports denormal numbers. Returns 1 if so, 0
 * otherwise.*/
int dsp_util_has_denormal();

/* Clears floating point exceptions. For debugging only. */
void dsp_util_clear_fp_exceptions();

/* Prints floating point exceptions to stdout. For debugging only. */
void dsp_util_print_fp_exceptions();

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* DSP_TEST_UTIL_H_ */