Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/arch/microblaze/lib/     Datei vom 24.10.2025 mit Größe 534 B image not shown  

Quelle  ashrdi3.c   Sprache: C

 

// SPDX-License-Identifier: GPL-2.0
#include <linux/export.h>

#include "libgcc.h"

long long __ashrdi3(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.high = 1..1 or 0..0 */
  w.s.high =
      uu.s.high >> 31;
  w.s.low = uu.s.high >> -bm;
 } else {
  const unsigned int carries = (unsigned int) uu.s.high << bm;

  w.s.high = uu.s.high >> b;
  w.s.low = ((unsigned int) uu.s.low >> b) | carries;
 }

 return w.ll;
}
EXPORT_SYMBOL(__ashrdi3);

Messung
CHZG
851009192

¤ Dauer der Verarbeitung: 0.2 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland