BOOTSTRAP (klibm) functions
LIBRARY ROUTINE
kpowtwo - determine if number is an integer power of two.
LIBRARY CALL
int kpowtwo(
int length)
INPUT
- length - length of sequence to be checked.
OUTPUT
none
RETURN VALUE
TRUE (1) if the argument is an
integer power of two, FALSE (0) otherwise
DESCRIPTION
The function kpowtwo checks to see if the integer
input argument (a sequence length)
is an integer power of 2.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/klibm/src/extensions.c
SEE ALSO
klibm(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.