Quelles conventions de dénomination standard et/ou quelles bibliothèques mathématiques utilisez-vous? J'utilise actuellementstdfloat.h version de stdint.h
#include <stdint.h>
typedef float float32_t;
typedef double float64_t;
/*! ISO C99: 7.18 Integer types 8, 16, 32, or 64 bits
intN_t = two’s complement signed integer type with width N, no padding bits.
uintN_t = an unsigned integer type with width N.
floatN_t = N bit IEE 754 float.
uintN_t intN_t floatN_t
bits unsigned-integer signed-integer IEE754 float
8
16 unsigned short short ??"half"
32 unsigned int float
64 unsigned long long double
128 ?? "Long double" "quad" ??*/
mais comme vous pouvez le voir, je n'ai pas encore décidé d'une bibliothèque de maths.
Original Question: Recommandation pour une petite bibliothèque de mathématiques avec la convention d'appellation directe.
Est-ce que quelqu'un connaît de petites bibliothèques C avec des conventions de nommage simples? C'est ce que j'utilise en ce moment:
typedef unsigned short UInt16; typedef short Int16;
typedef unsigned UInt32; typedef int Int32; typedef float Float32;
typedef unsigned long UInt64; typedef long int Int64; typedef double Float64;
Qu'est-ce que vous utilisez?
est '' indisponible sur votre plateforme? –
Christoph
J'utilise 'IMPLICIT DOUBLE PRÉCISION (A-H, O-Z)'. :-) C'est une blague, ne me brûlez pas. – Anycorn
@Christoph Ok, oui mais maintenant qu'est-ce que je fais à propos des flotteurs ?? – GlassGhost