Example #1
0
	SLL* i3vvmt_testSll_1_createSll(u32 tnSize)
	{
		u32		lnI;
		SLL*	ll;
		u8*		llInit;
		
		
		//////////
		// Create the SLL
		//////
			ll = vvm_ll_create(NULL, NULL, vvm_getNextUniqueId(), tnSize);


		//////////
		// Prepare that value
		//////
			if (ll)
			{
				// Iterate through every portion to initialize
				llInit = (u8*)ll + sizeof(SLL);
				for (lnI = 0; lnI < tnSize; lnI++)
					llInit[lnI] = vvm_getPredictableSequentialPattern(lnI, gnLlInitializerValue++);
			}


		//////////
		// Indicate our success or failure
		//////
			return(ll);
	}
Example #2
0
	void i3vvmt_testSll4_initiallyPopulate(SLL4* ll4, u32 tnSize)
	{
		u32		lnI;
		u8*		llInit;


		// Iterate through every portion to initialize
		llInit = (u8*)ll4 + sizeof(SLL4);
		for (lnI = 0; lnI < tnSize; lnI++)
			llInit[lnI] = vvm_getPredictableSequentialPattern(lnI, gnLlInitializerValue++);

	}