GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
PBS / V2-10-10
Constituent: pbs     Tag: sun-gcc
Interface Data Structures File List Data Fields Globals
LSU_pvt.ih File Reference
Linear Scaling Utilities, private inline include file. More...
#include "PBS/FFS.ih"
Include dependency graph for LSU_pvt.ih:
This graph shows which files directly or indirectly include this file:
|
Functions |
static __inline unsigned | lsu__mulhwu (unsigned int mult, unsigned int x) |
| Computes and returns the most significant 32-bits of a 32 x 32-bit unsigned integer multiple.
|
static __inline unsigned int | lsu__scale (unsigned int mult, int shift, unsigned int dx) |
| Helper function to convert x to a scaled value.
|
Detailed Description
Linear Scaling Utilities, private inline include file.
- Author:
- JJRussell - russell@slac.stanford.edu
CVS $Id: LSU_pvt.ih,v 1.1 2005/02/14 16:34:52 russell Exp $
Function Documentation
static __inline unsigned int lsu__mulhwu |
( |
unsigned int |
mult, |
|
|
unsigned int |
x |
|
) |
[static] |
|
|
Computes and returns the most significant 32-bits of a 32 x 32-bit unsigned integer multiple.
- Returns:
- The most significant 32-bits of a 32 x 32-bit unsigned integer multiple.
- This routine returns only the most significant 32-bits of a 32 x 32-bit multiple. On the PPC, this can be accomplished by using the mulhwu instruction. On other platforms, the straight-forward 32 x 32-bit multiple is done, and the correct bits are extracted
|
static __inline unsigned int lsu__scale |
( |
unsigned int |
mult, |
|
|
int |
shift, |
|
|
unsigned int |
x |
|
) |
[static] |
|
|
Helper function to convert x to a scaled value.
- Returns:
- The scaled value
- Parameters:
-
| mult | The multiplying scale factor |
| shift | The shift scale factor |
| x | The value to scale |
- This routine can be used after the multiply and shift factors have been extracted from the LSU function. In many cases, these factors are being update asynchronously, so the extraction must be done in an interlocked fashion. In other cases, no such restrictions apply, and this more bare-bones routine is all that is necessary
|
Generated on Mon Nov 20 05:44:14 2006 by
1.4.4