FDK/Tools/Programs/public/lib/source/cffwrite/cffwrite_t2cstr.c
/* Save fixed-point in tmp file. */
Save fixed-point in tmp file.
Save fixed - point in tmp file .
static void tmp_savefixed(cfwCtx g, Fixed f)
	{
	unsigned char t[5];
	size_t count;
	if (f & 0xffff)
		{
		t[0] = (unsigned char)255;
		t[1] = (unsigned char)(f>>24);
		t[2] = (unsigned char)(f>>16);
		t[3] = (unsigned char)(f>>8);
		t[4] = (unsigned char)f;
		count = 5;
		}
	else
		count = cfwEncInt(f>>16, t);
	if (g->cb.stm.write(&g->cb.stm, g->stm.tmp, count, (char *)t) == 0)
		g->err.code = cfwErrTmpStream;
	}
static void tmp_savefixed ( cfwCtx g , Fixed f ) { unsigned char t [ 5 ] ; size_t count ; if ( f & 0xffff ) { t [ 0 ] = ( unsigned char ) 255 ; t [ 1 ] = ( unsigned char ) ( f >> 24 ) ; t [ 2 ] = ( unsigned char ) ( f >> 16 ) ; t [ 3 ] = ( unsigned char ) ( f >> 8 ) ; t [ 4 ] = ( unsigned char ) f ; count = 5 ; } else count = cfwEncInt ( f >> 16 , t ) ; if ( g -> cb . stm . write ( & g -> cb . stm , g -> stm . tmp , count , ( char * ) t ) == 0 ) g -> err . code = cfwErrTmpStream ; }
Save fixed-point in tmp file.
Save fixed - point in tmp file .