добавление типа данных sint64 и uint32 приводит к появлению sint64 - PullRequest
0 голосов
/ 20 февраля 2019

когда я собираюсь реализовать добавление sitn64 и uint32, результат должен быть возвращен как в типе sint64 в AUTOSAR_SWS_EFXLibrary.но даны некоторые условия, например

[SWS_Efx_00415] 
**C operators shall not be used for 64bit data (cast, arithmetic operators and comparison operators)** 
[SWS_Efx_00416] ⌈
**64bit constants shall not be used.** 
[SWS_Efx_00417]
**Direct affectation to and from a 64 bit type shall only be used through predefined functions of 64 bits library.**
[SWS_Efx_00418] ⌈
**Only the sint64 type is allowed (uint64 shall not be used)**. ⌋ ( )
[SWS_Efx_00419] ⌈
**64bit functions do not perform saturation, even for the conversion to smaller types.** 

Итак, как мы можем реализовать функцию без использования операторов c.

...