Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2010 The Native Client Authors. All rights reserved. |
|
Mark Seaborn
2013/03/11 15:54:38
This file has not changed otherwise; you don't nee
| |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * be found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * these were lifted from src/trusted/service_runtime/nacl_config.h | 8 * these were lifted from src/trusted/service_runtime/nacl_config.h |
| 9 * NOTE: we cannot include this file here | 9 * NOTE: we cannot include this file here |
| 10 * TODO(robertm): make this file available in the sdk | 10 * TODO(robertm): make this file available in the sdk |
| 11 * http://code.google.com/p/nativeclient/issues/detail?id=386 | 11 * http://code.google.com/p/nativeclient/issues/detail?id=386 |
| 12 */ | 12 */ |
| 13 | 13 |
| 14 #ifndef BAREBONES_H_ | 14 #ifndef BAREBONES_H_ |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 49 int nibble = 0xf & (n >> (4 * (7 - i))); | 49 int nibble = 0xf & (n >> (4 * (7 - i))); |
| 50 if (nibble <= 9) { | 50 if (nibble <= 9) { |
| 51 buffer[i] = nibble + '0'; | 51 buffer[i] = nibble + '0'; |
| 52 } else { | 52 } else { |
| 53 buffer[i] = nibble - 10 + 'A'; | 53 buffer[i] = nibble - 10 + 'A'; |
| 54 } | 54 } |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 | 57 |
| 58 #endif /* BAREBONES_H_ */ | 58 #endif /* BAREBONES_H_ */ |
| OLD | NEW |