File:  [Qemu by Fabrice Bellard] / qemu / qfloat.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:34:03 2018 UTC (3 years, 2 months ago) by root
Branches: qemu, MAIN
CVS tags: qemu1101, qemu1001, qemu1000, qemu0151, qemu0150, qemu0141, qemu0140, qemu0130, qemu0125, qemu0124, qemu0123, qemu0122, qemu0121, qemu0120, HEAD
qemu 0.12.0

    1: /*
    2:  * QFloat Module
    3:  *
    4:  * Copyright IBM, Corp. 2009
    5:  *
    6:  * Authors:
    7:  *  Anthony Liguori   <aliguori@us.ibm.com>
    8:  *
    9:  * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
   10:  * See the COPYING.LIB file in the top-level directory.
   11:  *
   12:  */
   13: 
   14: #ifndef QFLOAT_H
   15: #define QFLOAT_H
   16: 
   17: #include <stdint.h>
   18: #include "qobject.h"
   19: 
   20: typedef struct QFloat {
   21:     QObject_HEAD;
   22:     double value;
   23: } QFloat;
   24: 
   25: QFloat *qfloat_from_double(double value);
   26: double qfloat_get_double(const QFloat *qi);
   27: QFloat *qobject_to_qfloat(const QObject *obj);
   28: 
   29: #endif /* QFLOAT_H */

unix.superglobalmegacorp.com