Commit 5f61a0f1 authored by Stewart Brodie's avatar Stewart Brodie
Browse files

Added a couple of new APIs to the 64-bit number support.

Detail:
  The ui64_value and si64_value routines now have versions with a
    return value of type unsigned int and int respectively, to
    allow callers to avoid narrowing cast warnings during builds.
Admin:
  Compiled.
  Required by NFS 3.07

Version 0.06. Tagged as 'AsmUtils-0_06'
parent 828a010f
/* (0.05)
/* (0.06)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 0.05
#define Module_MajorVersion_CMHG 0.06
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 10 Feb 2000
#define Module_Date_CMHG 15 Mar 2000
#define Module_MajorVersion "0.05"
#define Module_Version 5
#define Module_MajorVersion "0.06"
#define Module_Version 6
#define Module_MinorVersion ""
#define Module_Date "10 Feb 2000"
#define Module_Date "15 Mar 2000"
#define Module_FullVersion "0.05"
#define Module_FullVersion "0.06"
......@@ -78,9 +78,11 @@ extern u_int64_t *ui64_multiply_u64u64(u_int64_t *, u_int64_t *, u_int64_t *);
extern u_int64_t *ui64_shift_right(u_int64_t *, unsigned);
extern int64_t *si64_shift_right(int64_t *, unsigned);
/* Narrowing cast to 32 bits. */
/* Narrowing cast to 32 bits - both long and int as return values */
extern unsigned long ui64_value(const u_int64_t *);
extern long si64_value(const int64_t *);
extern unsigned int ui64_value_as_int(const u_int64_t *);
extern int si64_value_as_int(const int64_t *);
#ifdef __cplusplus
}
......
......@@ -171,10 +171,16 @@ si64_shift_right
AREA |AsmUtils$$SixtyFour8$$Code|, CODE, READONLY, PIC
; extern unsigned long ui64_value(const u_int64_t *);
; extern long si64_value(const int64_t *);
; extern unsigned int ui64_value_as_int(const u_int64_t *);
; extern int si64_value_as_int(const int64_t *);
EXPORT ui64_value
EXPORT si64_value
EXPORT ui64_value_as_int
EXPORT si64_value_as_int
ui64_value
si64_value
ui64_value_as_int
si64_value_as_int
LDR a1, [a1, #0]
Return ,LinkNotStacked
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment