/*
 * cas.h
 *
 * Written by Vicente Esteve LLoret <viesllo@inf.upv.es>
 * Copyright (C) Jul, 2003 OCERA Consortium.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation version 2.
 *
 * Compare and Swap instruction support.
 *
 */



 /* atomic compare and exchange 32 bit value */
extern inline unsigned int cas(volatile unsigned int * dest, unsigned int cmp_val, unsigned int new_val)
{
 return 0;
} 

/* atomic compare and exchange 64 bit value */
extern inline unsigned char cas2(volatile unsigned long long * dest, unsigned long long cmp_val, unsigned long long new_val)
 {
   return 0;
 }
