• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

Revisiónd1db1b05644534ace4d44188328ab71981902c0d (tree)
Tiempo2020-03-16 19:40:16
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Android 8.1.0 release 74
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCXl1rEQAKCRDorT+BmrEO
eHkBAJ424Rr1MSONEqf80hBgRtrNftMFNACfV1NFp9yrxr6WUtMPMul1pL7UCss=
=dVjT
-----END PGP SIGNATURE-----

Merge tag 'android-8.1.0_r74' into oreo-x86

Android 8.1.0 release 74

Cambiar Resumen

Diferencia incremental

--- a/libutils/include/utils/Flattenable.h
+++ b/libutils/include/utils/Flattenable.h
@@ -47,7 +47,12 @@ public:
4747
4848 template<size_t N>
4949 static size_t align(void*& buffer) {
50- return align<N>( const_cast<void const*&>(buffer) );
50+ static_assert(!(N & (N - 1)), "Can only align to a power of 2.");
51+ void* b = buffer;
52+ buffer = reinterpret_cast<void*>((uintptr_t(buffer) + (N-1)) & ~(N-1));
53+ size_t delta = size_t(uintptr_t(buffer) - uintptr_t(b));
54+ memset(b, 0, delta);
55+ return delta;
5156 }
5257
5358 static void advance(void*& buffer, size_t& size, size_t offset) {