Changeset 46c20c8 in mainline for uspace/app/sbi/src/bigint_t.h


Ignore:
Timestamp:
2010-11-26T20:08:10Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
45df59a
Parents:
fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/bigint_t.h

    rfb150d78 r46c20c8  
    2727 */
    2828
    29 /** @addtogroup libcsparc64
    30  * @{
    31  */
    32 /** @file
    33  */
    34 
    35 #ifndef LIBC_ia64_ISTATE_H_
    36 #define LIBC_ia64_ISTATE_H_
     29#ifndef BIGINT_T_H_
     30#define BIGINT_T_H_
    3731
    3832#include <sys/types.h>
     33#include <stdint.h>
    3934
    40 /** Interrupt context.
     35typedef uint8_t bigint_word_t;
     36typedef uint16_t bigint_dword_t;
     37
     38#define BIGINT_BASE ((bigint_dword_t) 256UL)
     39
     40/** Big integer.
    4141 *
    42  * This is a copy of the kernel definition with which it must be kept in sync.
     42 * Used to implement Sysel @c int type.
    4343 */
    44 typedef struct istate {
    45         /* TODO */
    46 } istate_t;
     44typedef struct bigint {
     45        /** Number of non-zero digits in the @c digit array. */
     46        size_t length;
    4747
    48 static inline uintptr_t istate_get_pc(istate_t *istate)
    49 {
    50         /* TODO */
    51         return 0;
    52 }
     48        /** Sign. */
     49        bool_t negative;
    5350
    54 static inline uintptr_t istate_get_fp(istate_t *istate)
    55 {
    56         /* TODO */
    57         return 0;
    58 }
     51        /** Digits starting from the least significant. */
     52        bigint_word_t *digit;
     53} bigint_t;
    5954
    6055#endif
    61 
    62 /** @}
    63  */
Note: See TracChangeset for help on using the changeset viewer.