numUtil.c File Reference

Numeric utilities. More...

#include "log.h"
#include "format.h"
#include "numUtil.h"

Go to the source code of this file.

Functions

unsigned byteSwap32 (unsigned a)
 Return byte-swapped version of a.
int digitsBaseTen (int x)
 Return number of digits base 10.
int digitsBaseTwo (unsigned long x)
 Return base two number of digits.
int positiveRangeIntersection (int start1, int end1, int start2, int end2)
 Return number of bases in intersection of two ranges, or zero if they don't intersect.
int rangeIntersection (int start1, int end1, int start2, int end2)
 Return amount of bases two ranges intersect over, 0 or negative if no intersection.
int roundingScale (int a, int p, int q)
 Returns rounded a*p/q.


Detailed Description

Numeric utilities.

Author:
Lukas Habegger (lukas.habegger@yale.edu)

Definition in file numUtil.c.


Generated on Fri Aug 7 15:46:43 2009 for BIOS by  doxygen 1.5.7.1