Пример #1
0
EXPORT_C void TE64Addr::SetAddr(const TInt64& aAddr)
{
#ifdef I64HIGH
	u.iAddr32[0] = I64HIGH(aAddr);
	u.iAddr32[1] = I64LOW(aAddr);
#else
	u.iAddr32[0] = aAddr.High();
	u.iAddr32[1] = aAddr.Low();
#endif
}
Пример #2
0
void CSettingsClient::StoreSettingL(const TDesC& aCategory,const TDesC& aNameHigh,const TDesC& aNameLow,const TInt64& aValue)
{
  TInt old;
  TInt err=iSettings.Get(aCategory,aNameHigh,old);
  if(err!=KErrNotFound) User::LeaveIfError(err);
  if(err==KErrNotFound||(TUint)old!=aValue.High()) User::LeaveIfError(iSettings.Set(aCategory,aNameHigh,aValue.High()));
  err=iSettings.Get(aCategory,aNameLow,old);
  if(err!=KErrNotFound) User::LeaveIfError(err);
  if(err==KErrNotFound||(TUint)old!=aValue.Low()) User::LeaveIfError(iSettings.Set(aCategory,aNameLow,aValue.Low()));
}
Пример #3
0
CVMInt64
CVMtimeMillis(void)
{
    TTime now;
    now.HomeTime();
    TInt64 t = now.Int64();
    TInt64 millis = (t - SYMBIANjavaEpoc) / 1000;
#ifdef EKA2
    return (CVMInt64)millis;
#else
    CVMInt64 delta = millis.Low();
    delta += (CVMInt64)millis.High() << 32;
    return delta;
#endif
}