| OLD | NEW |
| 1 /** | 1 /** |
| 2 * \file libyasm/file.h | 2 * \file libyasm/file.h |
| 3 * \brief YASM file helpers. | 3 * \brief YASM file helpers. |
| 4 * | 4 * |
| 5 * \rcs | |
| 6 * $Id: file.h 2287 2010-02-13 08:42:27Z peter $ | |
| 7 * \endrcs | |
| 8 * | |
| 9 * \license | 5 * \license |
| 10 * Copyright (C) 2001-2007 Peter Johnson | 6 * Copyright (C) 2001-2007 Peter Johnson |
| 11 * | 7 * |
| 12 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 13 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 14 * are met: | 10 * are met: |
| 15 * - Redistributions of source code must retain the above copyright | 11 * - Redistributions of source code must retain the above copyright |
| 16 * notice, this list of conditions and the following disclaimer. | 12 * notice, this list of conditions and the following disclaimer. |
| 17 * - Redistributions in binary form must reproduce the above copyright | 13 * - Redistributions in binary form must reproduce the above copyright |
| 18 * notice, this list of conditions and the following disclaimer in the | 14 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 */ | 516 */ |
| 521 #define YASM_LOAD_32_B(val, ptr) \ | 517 #define YASM_LOAD_32_B(val, ptr) \ |
| 522 do { \ | 518 do { \ |
| 523 (val) = (unsigned long)((*(ptr) & 0xFF) << 24); \ | 519 (val) = (unsigned long)((*(ptr) & 0xFF) << 24); \ |
| 524 (val) |= (unsigned long)((*((ptr)+1) & 0xFF) << 16); \ | 520 (val) |= (unsigned long)((*((ptr)+1) & 0xFF) << 16); \ |
| 525 (val) |= (unsigned long)((*((ptr)+2) & 0xFF) << 8); \ | 521 (val) |= (unsigned long)((*((ptr)+2) & 0xFF) << 8); \ |
| 526 (val) |= (unsigned long)(*((ptr)+3) & 0xFF); \ | 522 (val) |= (unsigned long)(*((ptr)+3) & 0xFF); \ |
| 527 } while (0) | 523 } while (0) |
| 528 | 524 |
| 529 #endif | 525 #endif |
| OLD | NEW |