LbmNormalizerExecStreamTest.cpp File Reference

Go to the source code of this file.

Classes

class  LbmNormalizerExecStreamTest
 Test case for LbmNormalizerExecStream. More...
class  NormalizerExecStreamGenerator

Functions

uint getValueCount (uint nRows, uint interval, uint value)
 Returns the number of times a value repeats over nRows.
 FENNEL_UNIT_TEST_SUITE (LbmNormalizerExecStreamTest)


Function Documentation

FENNEL_UNIT_TEST_SUITE ( LbmNormalizerExecStreamTest   ) 

uint getValueCount ( uint  nRows,
uint  interval,
uint  value 
)

Returns the number of times a value repeats over nRows.

Definition at line 81 of file LbmNormalizerExecStreamTest.cpp.

Referenced by SortedAggExecStreamGenerator::generateValue(), and NormalizerExecStreamGenerator::NormalizerExecStreamGenerator().

00082 {
00083     uint nCopies = nRows / interval;
00084     if (value < nRows % interval) {
00085         nCopies++;
00086     }
00087     return nCopies;
00088 }


Generated on Mon Jun 22 04:00:23 2009 for Fennel by  doxygen 1.5.1