Sha256: 96d7e39025d739919a0395184a9e6982f44ac568108db8527d020315cd62d110

Contents?: true

Size: 318 Bytes

Versions: 3

Compression:

Stored size: 318 Bytes

Contents

// -*- c++ -*-
#pragma once
#ifndef __XOT_UTIL_H__
#define __XOT_UTIL_H__


namespace Xot
{


	int bit2byte (int bits);

	int byte2bit (int bytes);


	template <typename T>
	inline T clip (T minval, T maxval, T value)
	{
		return value > maxval ? maxval : (value < minval ? minval : value);
	}


}// Xot


#endif//EOH

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
xot-0.1.6 include/xot/util.h
xot-0.1.5 include/xot/util.h
xot-0.1.4 include/xot/util.h