| Index: third_party/ijar/common.h
|
| diff --git a/third_party/ijar/common.h b/third_party/ijar/common.h
|
| index 118041b85296a85fffd37b18e4509513855cc52e..513e0019a9d7997d8612c1dff2b6a4c182645606 100644
|
| --- a/third_party/ijar/common.h
|
| +++ b/third_party/ijar/common.h
|
| @@ -1,6 +1,4 @@
|
| -// Copyright 2001,2007 Alan Donovan. All rights reserved.
|
| -//
|
| -// Author: Alan Donovan <adonovan@google.com>
|
| +// Copyright 2015 The Bazel Authors. All rights reserved.
|
| //
|
| // Licensed under the Apache License, Version 2.0 (the "License");
|
| // you may not use this file except in compliance with the License.
|
| @@ -61,6 +59,13 @@ inline u4 get_u4le(const u1 *&p) {
|
| return x;
|
| }
|
|
|
| +inline u8 get_u8le(const u1 *&p) {
|
| + u4 lo = get_u4le(p);
|
| + u4 hi = get_u4le(p);
|
| + u8 x = ((u8)hi << 32) | lo;
|
| + return x;
|
| +}
|
| +
|
| inline void put_u1(u1 *&p, u1 x) {
|
| *p++ = x;
|
| }
|
| @@ -89,6 +94,11 @@ inline void put_u4le(u1 *&p, u4 x) {
|
| *p++ = x >> 24;
|
| }
|
|
|
| +inline void put_u8le(u1 *&p, u8 x) {
|
| + put_u4le(p, x & 0xffffffff);
|
| + put_u4le(p, (x >> 32) & 0xffffffff);
|
| +}
|
| +
|
| // Copy n bytes from src to p, and advance p.
|
| inline void put_n(u1 *&p, const u1 *src, size_t n) {
|
| memcpy(p, src, n);
|
|
|