Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: third_party/afl/src/types.h

Issue 2238013002: Roll src/third_party/afl/src/ 2.14b..2.30b (16 versions). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Note in "Local Modifications" that we have removed dictionaries/. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/afl/src/testcases/others/xml/small_document.xml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 american fuzzy lop - type definitions and minor macros 2 american fuzzy lop - type definitions and minor macros
3 ------------------------------------------------------ 3 ------------------------------------------------------
4 4
5 Written and maintained by Michal Zalewski <lcamtuf@google.com> 5 Written and maintained by Michal Zalewski <lcamtuf@google.com>
6 6
7 Copyright 2013, 2014, 2015 Google Inc. All rights reserved. 7 Copyright 2013, 2014, 2015 Google Inc. All rights reserved.
8 8
9 Licensed under the Apache License, Version 2.0 (the "License"); 9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License. 10 you may not use this file except in compliance with the License.
(...skipping 26 matching lines...) Expand all
37 Now, it only happens in circumstances where the type happens to have the 37 Now, it only happens in circumstances where the type happens to have the
38 expected bit width, *but* the compiler does not know that... and complains 38 expected bit width, *but* the compiler does not know that... and complains
39 about 'unsigned long' being unsafe to pass to %llu. 39 about 'unsigned long' being unsafe to pass to %llu.
40 40
41 */ 41 */
42 42
43 #ifdef __x86_64__ 43 #ifdef __x86_64__
44 typedef unsigned long long u64; 44 typedef unsigned long long u64;
45 #else 45 #else
46 typedef uint64_t u64; 46 typedef uint64_t u64;
47 #endif /* ^sizeof(...) */ 47 #endif /* ^__x86_64__ */
48 48
49 typedef int8_t s8; 49 typedef int8_t s8;
50 typedef int16_t s16; 50 typedef int16_t s16;
51 typedef int32_t s32; 51 typedef int32_t s32;
52 typedef int64_t s64; 52 typedef int64_t s64;
53 53
54 #ifndef MIN 54 #ifndef MIN
55 # define MIN(_a,_b) ((_a) > (_b) ? (_b) : (_a)) 55 # define MIN(_a,_b) ((_a) > (_b) ? (_b) : (_a))
56 # define MAX(_a,_b) ((_a) > (_b) ? (_a) : (_b)) 56 # define MAX(_a,_b) ((_a) > (_b) ? (_a) : (_b))
57 #endif /* !MIN */ 57 #endif /* !MIN */
(...skipping 11 matching lines...) Expand all
69 }) 69 })
70 70
71 #define R(x) (random() % (x)) 71 #define R(x) (random() % (x))
72 72
73 #define STRINGIFY_INTERNAL(x) #x 73 #define STRINGIFY_INTERNAL(x) #x
74 #define STRINGIFY(x) STRINGIFY_INTERNAL(x) 74 #define STRINGIFY(x) STRINGIFY_INTERNAL(x)
75 75
76 #define MEM_BARRIER() \ 76 #define MEM_BARRIER() \
77 asm volatile("" ::: "memory") 77 asm volatile("" ::: "memory")
78 78
79 #define likely(_x) __builtin_expect(!!(_x), 1)
80 #define unlikely(_x) __builtin_expect(!!(_x), 0)
81
79 #endif /* ! _HAVE_TYPES_H */ 82 #endif /* ! _HAVE_TYPES_H */
OLDNEW
« no previous file with comments | « third_party/afl/src/testcases/others/xml/small_document.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698