Skip to content
Snippets Groups Projects
Select Git revision
21 results Searching

bignum.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    • Niels Möller's avatar
      496df00f
      (nettle_mpz_from_octets): Removed sign argument. If · 496df00f
      Niels Möller authored
      mpz_import is available, define nettle_mpz_from_octets as a macro
      calling mpz_import.
      (nettle_mpz_from_octets): Start by setting x to zero; callers no
      longer need to do that.
      (nettle_mpz_set_str_256_s): New logic for the handling of negative
      numbers. Convert in the same way as for positive numbers, and then
      subtract the appropriate power of two.
      
      Rev: src/nettle/bignum.c:1.9
      496df00f
      History
      (nettle_mpz_from_octets): Removed sign argument. If
      Niels Möller authored
      mpz_import is available, define nettle_mpz_from_octets as a macro
      calling mpz_import.
      (nettle_mpz_from_octets): Start by setting x to zero; callers no
      longer need to do that.
      (nettle_mpz_set_str_256_s): New logic for the handling of negative
      numbers. Convert in the same way as for positive numbers, and then
      subtract the appropriate power of two.
      
      Rev: src/nettle/bignum.c:1.9
    lex.h 1.05 KiB
    /*
    || This file is part of Pike. For copyright information see COPYRIGHT.
    || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
    || for more information.
    || $Id: lex.h,v 1.37 2008/05/01 20:39:40 mast Exp $
    */
    
    #ifndef LEX_H
    #define LEX_H
    
    #include "program.h"
    
    #if !defined(INCLUDED_FROM_LANGUAGE_YACC) && !defined(TOK_ARROW)
    /* language.c duplicates the definitions in language.h.
     * language.h is usually not protected against multiple inclusion.
     */
    #include "language.h"
    #endif
    
    #define NEW_LEX
    
    struct lex
    {
      char *pos;
      char *end;
      INT32 current_line;
      INT32 pragmas;
      struct pike_string *current_file;
      int (*current_lexer)(struct lex *, YYSTYPE *);
    };
    
    /* Prototypes begin here */
    
    int parse_esc_seq0 (p_wchar0 *buf, unsigned *chr, ptrdiff_t *len);
    int parse_esc_seq1 (p_wchar1 *buf, unsigned *chr, ptrdiff_t *len);
    int parse_esc_seq2 (p_wchar2 *buf, unsigned *chr, ptrdiff_t *len);
    
    int yylex0(struct lex *, YYSTYPE *);
    int yylex1(struct lex *, YYSTYPE *);
    int yylex2(struct lex *, YYSTYPE *);
    
    /* Prototypes end here */
    
    #endif	/* !LEX_H */