pktgen.c (f7f24758ac98a506770bc5910d33567610fa3403) pktgen.c (77933d7276ee8fa0e2947641941a6f7a100a327b)
1/*
2 * Authors:
3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se>
4 * Uppsala University and
5 * Swedish University of Agricultural Sciences
6 *
7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
8 * Ben Greear <greearb@candelatech.com>

--- 349 unchanged lines hidden (view full) ---

358 * Function copied/adapted/optimized from:
359 *
360 * nemesis.sourceforge.net/browse/lib/static/intmath/ix86/intmath.c.html
361 *
362 * Copyright 1994, University of Cambridge Computer Laboratory
363 * All Rights Reserved.
364 *
365 */
1/*
2 * Authors:
3 * Copyright 2001, 2002 by Robert Olsson <robert.olsson@its.uu.se>
4 * Uppsala University and
5 * Swedish University of Agricultural Sciences
6 *
7 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
8 * Ben Greear <greearb@candelatech.com>

--- 349 unchanged lines hidden (view full) ---

358 * Function copied/adapted/optimized from:
359 *
360 * nemesis.sourceforge.net/browse/lib/static/intmath/ix86/intmath.c.html
361 *
362 * Copyright 1994, University of Cambridge Computer Laboratory
363 * All Rights Reserved.
364 *
365 */
366inline static s64 divremdi3(s64 x, s64 y, int type)
366static inline s64 divremdi3(s64 x, s64 y, int type)
367{
368 u64 a = (x < 0) ? -x : x;
369 u64 b = (y < 0) ? -y : y;
370 u64 res = 0, d = 1;
371
372 if (b > 0) {
373 while (b < a) {
374 b <<= 1;

--- 2755 unchanged lines hidden ---
367{
368 u64 a = (x < 0) ? -x : x;
369 u64 b = (y < 0) ? -y : y;
370 u64 res = 0, d = 1;
371
372 if (b > 0) {
373 while (b < a) {
374 b <<= 1;

--- 2755 unchanged lines hidden ---