Device-LabJack

 view release on metacpan or  search on metacpan

linux-labjack/liblabjack/ljackul.c  view on Meta::CPAN

//
//-----------------------------------------------------------------------

#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#include <unistd.h>
#include <string.h>
//#include <pthread.h>

/* (efs) Macros to replace those lost in bitops.h
 */
#define BitSet(arg,posn) ((arg) | (1L << (posn)))
#define BitClr(arg,posn) ((arg) & ~(1L << (posn)))
#define BitFlp(arg,posn) ((arg) ^ (1L << (posn)))
#define BitTst(arg,posn) (!(!((arg) & (1L << (posn)))))

/* (efs) added include files, these are probably needed in the real driver for
 * standards compliance */
#include <stdlib.h>



( run in 0.539 second using v1.01-cache-2.11-cpan-49f99fa48dc )