/* *+ * Name: * BIT_ANDUB * Purpose: * Returns the bit-wise AND of its two UNSIGNED BYTE arguments. * Language: * Starlink ANSI C * Invocation: * RESULT = BIT_ANDUB( A, B ) * Description: * {routine_description} * Arguments: * A = BYTE (given) * First argument * B = BYTE (given) * Second argument * Examples: * {routine_example_text} * {routine_example_description} * Pitfalls: * {pitfall_description}... * Notes: * {routine_notes}... * Prior Requirements: * {routine_prior_requirements}... * Side Effects: * {routine_side_effects}... * Algorithm: * {algorithm_description}... * Accuracy: * {routine_accuracy} * Timing: * {routine_timing} * External Routines Used: * {name_of_facility_or_package}: * {routine_used}... * Implementation Deficiencies: * {routine_deficiencies}... * {machine}-specific features used: * {routine_machine_specifics}... * {DIY_prologue_heading}: * {DIY_prologue_text} * References: * bit Subroutine Guide : http://www.sr.bham.ac.uk/asterix-docs/Programmer/Guides/bit.html * Keywords: * package:bit, usage:public * Copyright: * Copyright (C) University of Birmingham, 1995 * Authors: * DJA: David J. Allan (Jet-X, University of Birmingham) * {enter_new_authors_here} * History: * 24 Feb 1995 (DJA): * Original version. * {enter_changes_here} * Bugs: * {note_any_bugs_here} *- */ /* * Include files */ #include "f77.h" /* * Body of code */ F77_UBYTE_FUNCTION(bit_andub)( UBYTE(a), UBYTE(b) ) { GENPTR_UBYTE(a) GENPTR_UBYTE(b) return ((*a) & (*b)); }