/*
*+
*  Name:
*     BIT_EORUB

*  Purpose:
*     Returns the bit-wise EOR of its two UNSIGNED BYTE arguments

*  Language:
*     Starlink ANSI C

*  Invocation:
*     RESULT = BIT_EORUB( A, B )

*  Description:
*     Provides portable bit-wise EOR of unsigned bytes.

*  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}...

*  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 1994 (DJA):
*        Original version.
*     {enter_changes_here}

*  Bugs:
*     {note_any_bugs_here}

*-
*/
      
/*
 *  Include files
 */
#include "f77.h"

/*
 *  Body of code
 */

F77_UBYTE_FUNCTION(bit_eorub)( UBYTE(a), UBYTE(b) )
  {
  GENPTR_UBYTE(a)
  GENPTR_UBYTE(b)

  return ((*a) ^ (*b));
  }