ARM Technical Support Knowledge Articles

_TESTCLEAR_ INTRINSIC FUNCTION

Applies to: C166 C Compiler

Answer

QUESTION

We have C166 V3.13 and the _testclear_ function cannot be used as follows:

if (_testclear_(a) == 1) { something; }

The following code, however, works fine.

if (_testclear_(a)) { something; }

Is there a work-around for this problem?

ANSWER

Yes. Try using the following...

if (_testclear_(a) != 0) { something; }

Article last edited on: 2004-06-07 09:11:38

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential