cregit-Linux how code gets into the kernel

Release 4.15 lib/ashldi3.c

Directory: lib
/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see the file COPYING, or write
 * to the Free Software Foundation, Inc.
 */

#include <linux/export.h>

#include <linux/libgcc.h>


long long notrace __ashldi3(long long u, word_type b) { DWunion uu, w; word_type bm; if (b == 0) return u; uu.ll = u; bm = 32 - b; if (bm <= 0) { w.s.low = 0; w.s.high = (unsigned int) uu.s.low << -bm; } else { const unsigned int carries = (unsigned int) uu.s.low >> bm; w.s.low = (unsigned int) uu.s.low << b; w.s.high = ((unsigned int) uu.s.high << b) | carries; } return w.ll; }

Contributors

PersonTokensPropCommitsCommitProp
Palmer Dabbelt143100.00%1100.00%
Total143100.00%1100.00%

EXPORT_SYMBOL(__ashldi3);

Overall Contributors

PersonTokensPropCommitsCommitProp
Palmer Dabbelt15499.35%150.00%
Christoph Hellwig10.65%150.00%
Total155100.00%2100.00%
Directory: lib
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.