Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  SkHalf.h

  Sprache: C
 

/*
 * Copyright 2014 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#ifndef SkHalf_DEFINED
#define SkHalf_DEFINED

#include <cstdint>

// 16-bit floating point value
// format is 1 bit sign, 5 bits exponent, 10 bits mantissa
// only used for storage
using SkHalf = uint16_t;

static constexpr uint16_t SK_HalfNaN      = 0x7c01; // a NaN value, not all possible NaN values
static constexpr uint16_t SK_HalfInfinity = 0x7c00;
static constexpr uint16_t SK_HalfMin      = 0x0400; // 2^-14  (minimum positive normal value)
static constexpr uint16_t SK_HalfMax      = 0x7bff; // 65504  (maximum positive normal value)
static constexpr uint16_t SK_HalfEpsilon  = 0x1400; // 2^-10
static constexpr uint16_t SK_Half1        = 0x3C00; // 1

// Convert between half and single precision floating point. Vectorized functions
// skvx::from_half and skvx::to_half are also available. Unlike skvx::to_half, this will
// correctly handle float NaN -> half NaN.
float SkHalfToFloat(SkHalf h);
SkHalf SkFloatToHalf(float f);

#endif

Messung V0.5 in Prozent
C=92 H=100 G=95

¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002