Formatted WV utils/src files.
[ Merge of http://go/wvgerrit/80944 ] Ran `git clang-format` on files in utils/src. Used the new .clang-format config. Bug: 134365840 Test: WV unit tests Change-Id: Idbba01ec65fc019327fc59dc1d95d7cefa4a5aa7
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
//
|
//
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason,
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) {
|
||||||
LPVOID lpReserved) {
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@@ -24,12 +25,11 @@ static const char kBase64Codes[] =
|
|||||||
// Gets the given (zero-indexed) bits [a, b) of |in|.
|
// Gets the given (zero-indexed) bits [a, b) of |in|.
|
||||||
#define GET_BITS(in, a, b) GET_LOW_BITS((in) >> (a), (b) - (a))
|
#define GET_BITS(in, a, b) GET_LOW_BITS((in) >> (a), (b) - (a))
|
||||||
// Calculates a/b using round-up division (only works for positive numbers).
|
// Calculates a/b using round-up division (only works for positive numbers).
|
||||||
#define CEIL_DIVIDE(a, b) ((((a) - 1) / (b)) + 1)
|
#define CEIL_DIVIDE(a, b) ((((a)-1) / (b)) + 1)
|
||||||
|
|
||||||
int DecodeBase64Char(char c) {
|
int DecodeBase64Char(char c) {
|
||||||
const char* it = strchr(kBase64Codes, c);
|
const char* it = strchr(kBase64Codes, c);
|
||||||
if (it == NULL)
|
if (it == NULL) return -1;
|
||||||
return -1;
|
|
||||||
return it - kBase64Codes;
|
return it - kBase64Codes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user