/*
*  BYTESWAPN_RT runtime function for VIPBLKS Read Binary File block
*
*  Copyright 1995-2007 The MathWorks, Inc.
*  $Revision: 1.1.6.1 $  $Date: 2010/08/30 02:48:03 $
*/
#include "vipfileread_rt.h"
#include <stdio.h>

EXPORT_FCN void MWVIP_byteSwapN(int_T N, byte_T *data)
{
    int_T f=0, r=N-1;
	int_T count = N>>1; /* divide by 2 */
	while(count-- >0)
	{
		byte_T temp;
		temp = data[f];
		data[f] = data[r];
		data[r] = temp;
		f++;
		r--;
	}
}

/* [EOF] byteswapn_rt.c */
