C routine detects single high bits

Sometimes, one needs to be able to verify the existence of just one high bit in a word. This ability can be useful, for example, to verify whether just one bit in a mask of mutually exclusive flags is set or if an incongruence exists in a word representing a set of input contacts. A listing is prese...

Full description

Saved in:
Bibliographic Details
Published inEDN p. 74
Main Author Denna, Maurizio
Format Magazine Article
LanguageEnglish
Published Cambridge AspenCore 17.02.1997
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:Sometimes, one needs to be able to verify the existence of just one high bit in a word. This ability can be useful, for example, to verify whether just one bit in a mask of mutually exclusive flags is set or if an incongruence exists in a word representing a set of input contacts. A listing is presented that shows a C routine for the verification function.
ISSN:0012-7515
2163-4084