swab.S (c04447ba) | swab.S (9d5abbdd) |
---|---|
1/* 2 * Copyright (c) 1993,94 Winning Strategies, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 24 unchanged lines hidden (view full) --- 33 34/* 35 * void 36 * swab (const void *src, void *dst, size_t len) 37 * copy len bytes from src to dst, swapping adjacent bytes 38 * 39 * On the i486, this code is negligibly faster than the code generated 40 * by gcc at about half the size. If my i386 databook is correct, it | 1/* 2 * Copyright (c) 1993,94 Winning Strategies, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 24 unchanged lines hidden (view full) --- 33 34/* 35 * void 36 * swab (const void *src, void *dst, size_t len) 37 * copy len bytes from src to dst, swapping adjacent bytes 38 * 39 * On the i486, this code is negligibly faster than the code generated 40 * by gcc at about half the size. If my i386 databook is correct, it |
41 * should be considerably faster than the gcc code on a i386. | 41 * should be considerably faster than the gcc code on an i386. |
42 * 43 * Written by: 44 * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc. 45 */ 46 47ENTRY(swab) 48 pushl %esi 49 pushl %edi --- 50 unchanged lines hidden --- | 42 * 43 * Written by: 44 * J.T. Conklin (jtc@wimsey.com), Winning Strategies, Inc. 45 */ 46 47ENTRY(swab) 48 pushl %esi 49 pushl %edi --- 50 unchanged lines hidden --- |