diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-08-08 12:06:17 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-08-08 12:06:17 +0000 |
commit | d6f23fa1d6d08bf56584be7689b9560a242e22fa (patch) | |
tree | 6e0cca478f6f9e96e806f4af167201155c0a30a8 /libvpx/vp8/common/common.h | |
parent | 0e4073417f6db7af294f1af0c5bc45c384c51b8f (diff) | |
parent | 6939824c0cf8321a1718973892371085f7b4edff (diff) | |
download | libvpx-android13-mainline-wifi-release.tar.gz |
Snap for 8917908 from 6939824c0cf8321a1718973892371085f7b4edff to mainline-wifi-releaseaml_wif_331810010aml_wif_331710030aml_wif_331613000aml_wif_331511020aml_wif_331414000aml_wif_331310070aml_wif_331112000aml_wif_331016070android13-mainline-wifi-release
Change-Id: I7d6734d12edd22ecfbec51f472ce6e08422b2595
Diffstat (limited to 'libvpx/vp8/common/common.h')
-rw-r--r-- | libvpx/vp8/common/common.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libvpx/vp8/common/common.h b/libvpx/vp8/common/common.h index 2c30e8d6c..562569f9a 100644 --- a/libvpx/vp8/common/common.h +++ b/libvpx/vp8/common/common.h @@ -24,22 +24,22 @@ extern "C" { /* Only need this for fixed-size arrays, for structs just assign. */ #define vp8_copy(Dest, Src) \ - { \ + do { \ assert(sizeof(Dest) == sizeof(Src)); \ memcpy(Dest, Src, sizeof(Src)); \ - } + } while (0) /* Use this for variably-sized arrays. */ #define vp8_copy_array(Dest, Src, N) \ - { \ + do { \ assert(sizeof(*(Dest)) == sizeof(*(Src))); \ memcpy(Dest, Src, (N) * sizeof(*(Src))); \ - } + } while (0) -#define vp8_zero(Dest) memset(&(Dest), 0, sizeof(Dest)); +#define vp8_zero(Dest) memset(&(Dest), 0, sizeof(Dest)) -#define vp8_zero_array(Dest, N) memset(Dest, 0, (N) * sizeof(*(Dest))); +#define vp8_zero_array(Dest, N) memset(Dest, 0, (N) * sizeof(*(Dest))) #ifdef __cplusplus } // extern "C" |