bits.h
Go to the documentation of this file.
00001 /*
00002  * $Id: bits.h,v 1.10 2006/01/30 23:07:57 mclark Exp $
00003  *
00004  * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
00005  * Michael Clark <michael@metaparadigm.com>
00006  *
00007  * This library is free software; you can redistribute it and/or modify
00008  * it under the terms of the MIT license. See COPYING for details.
00009  *
00010  */
00011 
00012 #ifndef _bits_h_
00013 #define _bits_h_
00014 
00015 #ifndef min
00016 #define min(a,b) ((a) < (b) ? (a) : (b))
00017 #endif
00018 
00019 #ifndef max
00020 #define max(a,b) ((a) > (b) ? (a) : (b))
00021 #endif
00022 
00023 #define hexdigit(x) (((x) <= '9') ? (x) - '0' : ((x) & 7) + 9)
00024 #define error_ptr(error) ((void*)error)
00025 #define is_error(ptr) ((unsigned long)ptr > (unsigned long)-4000L)
00026 
00027 #endif


csm_ros
Author(s): Gaƫl Ecorchard , Ivan Dryanovski, William Morris, Andrea Censi
autogenerated on Sat Jun 8 2019 19:52:42